diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-04-13 21:57:13 +0300 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-04-13 21:57:13 +0300 |
commit | 1c592c26f93ce80f6c113937341d447fa7765fcd (patch) | |
tree | 68dad80db48cdba3402e7c7fd32bba5c1a958241 | |
parent | 3b0cd93f89a9fea54b155fdae15ec56c6291c2cc (diff) |
review fix
-rw-r--r-- | src/core/Pools.cpp | 4 |
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; } |