diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-08 22:29:43 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-08 22:29:43 +0200 |
commit | 7e753c259680a13c656bdc6c86d99a4891616474 (patch) | |
tree | 7cc9674c62784eba25109dee499bd73056a4e62f /src/control/Script.cpp | |
parent | fix (diff) | |
download | re3-7e753c259680a13c656bdc6c86d99a4891616474.tar re3-7e753c259680a13c656bdc6c86d99a4891616474.tar.gz re3-7e753c259680a13c656bdc6c86d99a4891616474.tar.bz2 re3-7e753c259680a13c656bdc6c86d99a4891616474.tar.lz re3-7e753c259680a13c656bdc6c86d99a4891616474.tar.xz re3-7e753c259680a13c656bdc6c86d99a4891616474.tar.zst re3-7e753c259680a13c656bdc6c86d99a4891616474.zip |
Diffstat (limited to '')
-rw-r--r-- | src/control/Script.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp index dabb0571..b6729486 100644 --- a/src/control/Script.cpp +++ b/src/control/Script.cpp @@ -3089,7 +3089,7 @@ int8 CRunningScript::ProcessCommands300To399(int32 command) case COMMAND_SET_ZONE_CAR_INFO: { char label[12]; - int16 gangDensities[NUM_GANGS]; + int16 gangDensities[NUM_GANGS] = { 0 }; int i; CTheScripts::ReadTextLabelFromScript(&m_nIp, label); @@ -9849,8 +9849,8 @@ int8 CRunningScript::ProcessCommands1200To1299(int32 command) case COMMAND_SET_ZONE_CIVILIAN_CAR_INFO: { char label[12]; - int16 carDensities[CCarCtrl::NUM_CAR_CLASSES]; - int16 boatDensities[CCarCtrl::NUM_BOAT_CLASSES]; + int16 carDensities[CCarCtrl::NUM_CAR_CLASSES] = { 0 }; + int16 boatDensities[CCarCtrl::NUM_BOAT_CLASSES] = { 0 }; int i; CTheScripts::ReadTextLabelFromScript(&m_nIp, label); |