summaryrefslogtreecommitdiffstats
path: root/src/control/Script.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-09 12:45:27 +0200
committeraap <aap@papnet.eu>2020-05-09 12:45:27 +0200
commitea053467b53bf2182cb065e45f31ddd0e33d9a80 (patch)
treed8605b2a7249f9b38dd74d3b83d21a4d8f1bd510 /src/control/Script.cpp
parentnamed anim assoc flags (diff)
parentMerge pull request #526 from Nick007J/miami (diff)
downloadre3-ea053467b53bf2182cb065e45f31ddd0e33d9a80.tar
re3-ea053467b53bf2182cb065e45f31ddd0e33d9a80.tar.gz
re3-ea053467b53bf2182cb065e45f31ddd0e33d9a80.tar.bz2
re3-ea053467b53bf2182cb065e45f31ddd0e33d9a80.tar.lz
re3-ea053467b53bf2182cb065e45f31ddd0e33d9a80.tar.xz
re3-ea053467b53bf2182cb065e45f31ddd0e33d9a80.tar.zst
re3-ea053467b53bf2182cb065e45f31ddd0e33d9a80.zip
Diffstat (limited to '')
-rw-r--r--src/control/Script.cpp6
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);