summaryrefslogtreecommitdiffstats
path: root/src/core/Stats.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-11-13 13:14:56 +0100
committeraap <aap@papnet.eu>2020-11-13 13:14:56 +0100
commit257f45c3c37530ec86bb4e5906d1cf5b6005cf38 (patch)
tree014b72e88afdb350d5f7dbd9e23debd07054fbec /src/core/Stats.cpp
parentCPed review, part 1 (diff)
parentMerge remote-tracking branch 'upstream/miami' into miami (diff)
downloadre3-257f45c3c37530ec86bb4e5906d1cf5b6005cf38.tar
re3-257f45c3c37530ec86bb4e5906d1cf5b6005cf38.tar.gz
re3-257f45c3c37530ec86bb4e5906d1cf5b6005cf38.tar.bz2
re3-257f45c3c37530ec86bb4e5906d1cf5b6005cf38.tar.lz
re3-257f45c3c37530ec86bb4e5906d1cf5b6005cf38.tar.xz
re3-257f45c3c37530ec86bb4e5906d1cf5b6005cf38.tar.zst
re3-257f45c3c37530ec86bb4e5906d1cf5b6005cf38.zip
Diffstat (limited to 'src/core/Stats.cpp')
-rw-r--r--src/core/Stats.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/Stats.cpp b/src/core/Stats.cpp
index 373c295d..e078e6d0 100644
--- a/src/core/Stats.cpp
+++ b/src/core/Stats.cpp
@@ -192,13 +192,18 @@ void CStats::Init()
KillsSinceLastCheckpoint = 0;
TotalLegitimateKills = 0;
+
+ for (int i = 0; i < ARRAY_SIZE(LastMissionPassedName); i++)
+ LastMissionPassedName[i] = 0;
+
IndustrialPassed = 0;
CommercialPassed = 0;
SuburbanPassed = 0;
PamphletMissionPassed = 0;
NoMoreHurricanes = 0;
ShowChaseStatOnScreen = 0;
- abSonyCDs[0] = 0;
+ for (int i = 0; i < ARRAY_SIZE(abSonyCDs); i++)
+ abSonyCDs[i] = 0;
PopulateFavoriteRadioStationList();
NumPropertyOwned = 0;