summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-01-27 23:50:10 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2021-01-27 23:50:10 +0100
commit3f8e258055cd1d10a9496995f329c6a08ebdea30 (patch)
tree5ce4f2ceb66de95fd420a2892d36ad14d5bd9e0c /src
parentMerge remote-tracking branch 'upstream/lcs' into lcs (diff)
downloadre3-3f8e258055cd1d10a9496995f329c6a08ebdea30.tar
re3-3f8e258055cd1d10a9496995f329c6a08ebdea30.tar.gz
re3-3f8e258055cd1d10a9496995f329c6a08ebdea30.tar.bz2
re3-3f8e258055cd1d10a9496995f329c6a08ebdea30.tar.lz
re3-3f8e258055cd1d10a9496995f329c6a08ebdea30.tar.xz
re3-3f8e258055cd1d10a9496995f329c6a08ebdea30.tar.zst
re3-3f8e258055cd1d10a9496995f329c6a08ebdea30.zip
Diffstat (limited to '')
-rw-r--r--src/control/Script6.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Script6.cpp b/src/control/Script6.cpp
index acc84c31..0e1256fd 100644
--- a/src/control/Script6.cpp
+++ b/src/control/Script6.cpp
@@ -632,7 +632,7 @@ int8 CRunningScript::ProcessCommands1000To1099(int32 command)
if (GET_INTEGER_PARAM(2) < 0)
pPed->WarpPedIntoCarAsPassenger(pVehicle, GET_INTEGER_PARAM(2));
else {
- script_assert(GET_INTEGER_PARAM(1) >= 0 && GET_INTEGER_PARAM(1) < ARRAY_SIZE(pVehicle->pPassengers));
+ script_assert(GET_INTEGER_PARAM(2) >= 0 && GET_INTEGER_PARAM(2) < ARRAY_SIZE(pVehicle->pPassengers));
pPed->WarpPedIntoCarAsPassenger(pVehicle, GET_INTEGER_PARAM(2));
}
return 0;