summaryrefslogtreecommitdiffstats
path: root/src/control/CarCtrl.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-07 17:53:38 +0200
committeraap <aap@papnet.eu>2020-05-07 17:53:38 +0200
commit19b21cafcd0e457155c71f339dbccb94aff72d83 (patch)
tree3c61e0b3839ff14b9eaf8d30f88bcb4f4b265e65 /src/control/CarCtrl.cpp
parentMerge branch 'miami' of github.com:GTAmodding/re3 into miami (diff)
downloadre3-19b21cafcd0e457155c71f339dbccb94aff72d83.tar
re3-19b21cafcd0e457155c71f339dbccb94aff72d83.tar.gz
re3-19b21cafcd0e457155c71f339dbccb94aff72d83.tar.bz2
re3-19b21cafcd0e457155c71f339dbccb94aff72d83.tar.lz
re3-19b21cafcd0e457155c71f339dbccb94aff72d83.tar.xz
re3-19b21cafcd0e457155c71f339dbccb94aff72d83.tar.zst
re3-19b21cafcd0e457155c71f339dbccb94aff72d83.zip
Diffstat (limited to 'src/control/CarCtrl.cpp')
-rw-r--r--src/control/CarCtrl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/control/CarCtrl.cpp b/src/control/CarCtrl.cpp
index 702bd411..34a2abee 100644
--- a/src/control/CarCtrl.cpp
+++ b/src/control/CarCtrl.cpp
@@ -664,6 +664,7 @@ CCarCtrl::ChooseGangCarModel(int32 gang)
void
CCarCtrl::AddToCarArray(int32 id, int32 vehclass)
{
+ assert(TotalNumOfCarsOfRating[vehclass] < MAX_CAR_MODELS_IN_ARRAY);
CarArrays[vehclass][TotalNumOfCarsOfRating[vehclass]++] = id;
}