From da39624f1c694dbeaefc6762fd6867715cdb77bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?eray=20or=C3=A7unus?= Date: Thu, 8 Oct 2020 00:21:44 +0300 Subject: Pad, BulletInfo, ProjectileInfo, fixes --- src/control/Script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/control') 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) -- cgit v1.2.3