diff options
author | erorcun <erayorcunus@gmail.com> | 2020-07-01 14:28:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-01 14:28:43 +0200 |
commit | eda50bc32bafaea788def2f00f4ac036329dd46c (patch) | |
tree | ef0200e6f8ce0e24ef52ccb8b70c32c1cbdb35f3 /src/control/Script.cpp | |
parent | little fix (diff) | |
download | re3-eda50bc32bafaea788def2f00f4ac036329dd46c.tar re3-eda50bc32bafaea788def2f00f4ac036329dd46c.tar.gz re3-eda50bc32bafaea788def2f00f4ac036329dd46c.tar.bz2 re3-eda50bc32bafaea788def2f00f4ac036329dd46c.tar.lz re3-eda50bc32bafaea788def2f00f4ac036329dd46c.tar.xz re3-eda50bc32bafaea788def2f00f4ac036329dd46c.tar.zst re3-eda50bc32bafaea788def2f00f4ac036329dd46c.zip |
Diffstat (limited to 'src/control/Script.cpp')
-rw-r--r-- | src/control/Script.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp index 40bbd0cf..7354df22 100644 --- a/src/control/Script.cpp +++ b/src/control/Script.cpp @@ -3297,7 +3297,12 @@ int8 CRunningScript::ProcessCommands100To199(int32 command) ped->ClearAll(); int8 path = ScriptParams[1]; if (ScriptParams[1] < 0 || ScriptParams[1] > 7) + // Max number GetRandomNumberInRange returns is max-1 +#ifdef FIX_BUGS + path = CGeneral::GetRandomNumberInRange(0, 8); +#else path = CGeneral::GetRandomNumberInRange(0, 7); +#endif ped->SetWanderPath(path); return 0; } |