mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 20:48:59 +00:00
fix
This commit is contained in:
parent
b407f6a011
commit
4505b8795a
1 changed files with 2 additions and 2 deletions
|
@ -1811,8 +1811,8 @@ int8 CRunningScript::ProcessCommands900To999(int32 command)
|
||||||
return 0;
|
return 0;
|
||||||
int attempts;
|
int attempts;
|
||||||
int model = -1;
|
int model = -1;
|
||||||
int index = CGeneral::GetRandomNumberInRange(0, 50);
|
int index = CGeneral::GetRandomNumberInRange(0, MAXVEHICLESLOADED);
|
||||||
for (attempts = 0; attempts < 50; attempts++) {
|
for (attempts = 0; attempts < MAXVEHICLESLOADED; attempts++) {
|
||||||
if (model != -1)
|
if (model != -1)
|
||||||
break;
|
break;
|
||||||
model = CStreaming::ms_vehiclesLoaded[index];
|
model = CStreaming::ms_vehiclesLoaded[index];
|
||||||
|
|
Loading…
Reference in a new issue