summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-13 20:57:13 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-04-13 20:57:13 +0200
commit1c592c26f93ce80f6c113937341d447fa7765fcd (patch)
tree68dad80db48cdba3402e7c7fd32bba5c1a958241 /src/core
parentMerge remote-tracking branch 'upstream/master' (diff)
downloadre3-1c592c26f93ce80f6c113937341d447fa7765fcd.tar
re3-1c592c26f93ce80f6c113937341d447fa7765fcd.tar.gz
re3-1c592c26f93ce80f6c113937341d447fa7765fcd.tar.bz2
re3-1c592c26f93ce80f6c113937341d447fa7765fcd.tar.lz
re3-1c592c26f93ce80f6c113937341d447fa7765fcd.tar.xz
re3-1c592c26f93ce80f6c113937341d447fa7765fcd.tar.zst
re3-1c592c26f93ce80f6c113937341d447fa7765fcd.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/Pools.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/Pools.cpp b/src/core/Pools.cpp
index 9fd3d60e..6add9e0c 100644
--- a/src/core/Pools.cpp
+++ b/src/core/Pools.cpp
@@ -183,7 +183,7 @@ INITSAVEBUF
if (!pVehicle)
continue;
bool bHasPassenger = false;
- for (int j = 0; j < 8; j++) {
+ for (int j = 0; j < ARRAY_SIZE(pVehicle->pPassengers); j++) {
if (pVehicle->pPassengers[i])
bHasPassenger = true;
}
@@ -203,7 +203,7 @@ INITSAVEBUF
if (!pVehicle)
continue;
bool bHasPassenger = false;
- for (int j = 0; j < 8; j++) {
+ for (int j = 0; j < ARRAY_SIZE(pVehicle->pPassengers); j++) {
if (pVehicle->pPassengers[j])
bHasPassenger = true;
}