fixed script bug

This commit is contained in:
Nikolay Korolev 2020-05-19 23:49:28 +03:00 committed by GitHub
parent 50f0c7a1dc
commit 1b96e6c378
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2998,9 +2998,9 @@ int8 CRunningScript::ProcessCommands300To399(int32 command)
pCarGen->SwitchOff();
}else if (ScriptParams[1] <= 100){
pCarGen->SwitchOn();
pCarGen->SetUsesRemaining(ScriptParams[1]);
}else{
pCarGen->SwitchOn();
pCarGen->SetUsesRemaining(ScriptParams[1]);
}
return 0;
}