summaryrefslogtreecommitdiffstats
path: root/src/vehicles/CarGen.cpp
diff options
context:
space:
mode:
authormajestic <majesticcoding@gmail.com>2020-10-09 04:22:50 +0200
committermajestic <majesticcoding@gmail.com>2020-10-09 04:28:31 +0200
commitc091a5c11a826665f083ee7e73635f03aa4b550d (patch)
tree21f0d517e5210b1bc28d39ebfe67c2b0bcbb2772 /src/vehicles/CarGen.cpp
parentMerge branch 'miami' of https://github.com/GTAmodding/re3 into miami (diff)
parentFix POSIX streaming (diff)
downloadre3-c091a5c11a826665f083ee7e73635f03aa4b550d.tar
re3-c091a5c11a826665f083ee7e73635f03aa4b550d.tar.gz
re3-c091a5c11a826665f083ee7e73635f03aa4b550d.tar.bz2
re3-c091a5c11a826665f083ee7e73635f03aa4b550d.tar.lz
re3-c091a5c11a826665f083ee7e73635f03aa4b550d.tar.xz
re3-c091a5c11a826665f083ee7e73635f03aa4b550d.tar.zst
re3-c091a5c11a826665f083ee7e73635f03aa4b550d.zip
Diffstat (limited to '')
-rw-r--r--src/vehicles/CarGen.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/vehicles/CarGen.cpp b/src/vehicles/CarGen.cpp
index b0fa91a4..598b8342 100644
--- a/src/vehicles/CarGen.cpp
+++ b/src/vehicles/CarGen.cpp
@@ -28,8 +28,13 @@ uint32 CTheCarGenerators::CurrentActiveCount;
void CCarGenerator::SwitchOff()
{
- m_nUsesRemaining = 0;
- --CTheCarGenerators::CurrentActiveCount;
+#ifdef FIX_BUGS
+ if (m_nUsesRemaining != 0)
+#endif
+ {
+ m_nUsesRemaining = 0;
+ --CTheCarGenerators::CurrentActiveCount;
+ }
}
void CCarGenerator::SwitchOn()