From b01987719ea9b20e5979b412ae32096ff3d3e6be Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Thu, 14 May 2020 15:26:59 +0300 Subject: fixed script error --- src/control/Script.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/control/Script.cpp b/src/control/Script.cpp index 13000847..357436c6 100644 --- a/src/control/Script.cpp +++ b/src/control/Script.cpp @@ -5601,8 +5601,7 @@ int8 CRunningScript::ProcessCommands700To799(int32 command) { CollectParameters(&m_nIp, 1); CVehicle* pVehicle = CPools::GetVehiclePool()->GetAt(ScriptParams[0]); - assert(pVehicle); - UpdateCompareFlag(pVehicle->bIsInWater); + UpdateCompareFlag(pVehicle && pVehicle->bIsInWater); return 0; } case COMMAND_GET_CLOSEST_CHAR_NODE: -- cgit v1.2.3