summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}