diff options
author | aap <aap@papnet.eu> | 2020-05-07 17:53:38 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-05-07 17:53:38 +0200 |
commit | 19b21cafcd0e457155c71f339dbccb94aff72d83 (patch) | |
tree | 3c61e0b3839ff14b9eaf8d30f88bcb4f4b265e65 /src/control/CarCtrl.cpp | |
parent | Merge branch 'miami' of github.com:GTAmodding/re3 into miami (diff) | |
download | re3-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.cpp | 1 |
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; } |