summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-02-01 23:12:20 +0100
committerSergeanur <s.anureev@yandex.ua>2020-02-02 00:43:04 +0100
commite4f1ab20f1a5f5568888fd64b2c93f9baf0fac4e (patch)
tree872ae47fa3aeab2c0a9fb9b0599fd568f75c1f1c
parentReplay crash fix (diff)
downloadre3-e4f1ab20f1a5f5568888fd64b2c93f9baf0fac4e.tar
re3-e4f1ab20f1a5f5568888fd64b2c93f9baf0fac4e.tar.gz
re3-e4f1ab20f1a5f5568888fd64b2c93f9baf0fac4e.tar.bz2
re3-e4f1ab20f1a5f5568888fd64b2c93f9baf0fac4e.tar.lz
re3-e4f1ab20f1a5f5568888fd64b2c93f9baf0fac4e.tar.xz
re3-e4f1ab20f1a5f5568888fd64b2c93f9baf0fac4e.tar.zst
re3-e4f1ab20f1a5f5568888fd64b2c93f9baf0fac4e.zip
-rw-r--r--src/control/Script.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index 6de072d1..117d8b54 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -4717,8 +4717,8 @@ int8 CRunningScript::ProcessCommands500To599(int32 command)
CPowerPoints::GenerateNewOne(f1, f2, f3, f4, f5, f6, *(uint8*)&ScriptParams[6]);
- return 0;
- }
+ return 0;
+ }
#endif // GTA_PS2
case COMMAND_SET_ALL_TAXI_LIGHTS:
CollectParameters(&m_nIp, 1);
@@ -5654,6 +5654,7 @@ int8 CRunningScript::ProcessCommands700To799(int32 command)
}
case COMMAND_GET_NUMBER_OF_POWER_PILLS_CARRIED:
ScriptParams[0] = CPacManPickups::QueryPowerPillsCarriedByPlayer();
+ StoreParameters(&m_nIp, 1);
return 0;
case COMMAND_CLEAR_NUMBER_OF_POWER_PILLS_CARRIED:
CPacManPickups::ResetPowerPillsCarriedByPlayer();