summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-19 22:49:28 +0200
committerGitHub <noreply@github.com>2020-05-19 22:49:28 +0200
commit1b96e6c378b3e827c27444c38d207350ec0af66c (patch)
tree5386293f38113c743f5ecef5e9eacadf74e1e9d4 /src
parentbla (diff)
downloadre3-1b96e6c378b3e827c27444c38d207350ec0af66c.tar
re3-1b96e6c378b3e827c27444c38d207350ec0af66c.tar.gz
re3-1b96e6c378b3e827c27444c38d207350ec0af66c.tar.bz2
re3-1b96e6c378b3e827c27444c38d207350ec0af66c.tar.lz
re3-1b96e6c378b3e827c27444c38d207350ec0af66c.tar.xz
re3-1b96e6c378b3e827c27444c38d207350ec0af66c.tar.zst
re3-1b96e6c378b3e827c27444c38d207350ec0af66c.zip
Diffstat (limited to 'src')
-rw-r--r--src/control/Script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index 864799f8..e8aa3266 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -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;
}