summaryrefslogtreecommitdiffstats
path: root/src/modelinfo/VehicleModelInfo.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-07-24 19:43:51 +0200
committereray orçunus <erayorcunus@gmail.com>2020-07-24 20:02:55 +0200
commitad6094ca1d9b54b32ae8153c771e8e6f9308103a (patch)
tree929528298d437e2868071683228743f47accc173 /src/modelinfo/VehicleModelInfo.cpp
parentMerge pull request #661 from erorcun/miami (diff)
downloadre3-ad6094ca1d9b54b32ae8153c771e8e6f9308103a.tar
re3-ad6094ca1d9b54b32ae8153c771e8e6f9308103a.tar.gz
re3-ad6094ca1d9b54b32ae8153c771e8e6f9308103a.tar.bz2
re3-ad6094ca1d9b54b32ae8153c771e8e6f9308103a.tar.lz
re3-ad6094ca1d9b54b32ae8153c771e8e6f9308103a.tar.xz
re3-ad6094ca1d9b54b32ae8153c771e8e6f9308103a.tar.zst
re3-ad6094ca1d9b54b32ae8153c771e8e6f9308103a.zip
Diffstat (limited to 'src/modelinfo/VehicleModelInfo.cpp')
-rw-r--r--src/modelinfo/VehicleModelInfo.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modelinfo/VehicleModelInfo.cpp b/src/modelinfo/VehicleModelInfo.cpp
index d5396d12..11f78495 100644
--- a/src/modelinfo/VehicleModelInfo.cpp
+++ b/src/modelinfo/VehicleModelInfo.cpp
@@ -689,7 +689,11 @@ ChooseComponent(int32 rule, int32 comps)
return COMPRULE_COMPN(comps, n-1);
return -1;
case 4:
+#ifdef FIX_BUGS
+ return CGeneral::GetRandomNumberInRange(0, 6);
+#else
return CGeneral::GetRandomNumberInRange(0, 5);
+#endif
}
return -1;
}