summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-10-08 20:39:11 +0200
committerGitHub <noreply@github.com>2020-10-08 20:39:11 +0200
commitb97f86deeaa80705941de14b95d32e801cae837f (patch)
tree8c286f6992a58fc3db885a5579b0d49a22f30e68 /src/control
parentMerge pull request #755 from theR4K/miami (diff)
parentMerge branch 'miami' into miami (diff)
downloadre3-b97f86deeaa80705941de14b95d32e801cae837f.tar
re3-b97f86deeaa80705941de14b95d32e801cae837f.tar.gz
re3-b97f86deeaa80705941de14b95d32e801cae837f.tar.bz2
re3-b97f86deeaa80705941de14b95d32e801cae837f.tar.lz
re3-b97f86deeaa80705941de14b95d32e801cae837f.tar.xz
re3-b97f86deeaa80705941de14b95d32e801cae837f.tar.zst
re3-b97f86deeaa80705941de14b95d32e801cae837f.zip
Diffstat (limited to 'src/control')
-rw-r--r--src/control/Script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index 95e93b6c..aa4e109f 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -12020,7 +12020,7 @@ int8 CRunningScript::ProcessCommands1100To1199(int32 command)
script_assert(pVehicle);
bool bIsBurst = false;
CBike* pBike = (CBike*)pVehicle;
- if (pVehicle->m_vehType == VEHICLE_APPEARANCE_BIKE) {
+ if (pVehicle->IsBike()) {
if (ScriptParams[1] == 4) {
for (int i = 0; i < 2; i++) {
if (pBike->m_wheelStatus[i] == WHEEL_STATUS_BURST)