1
0
Fork 0
mirror of https://github.com/halpz/re3.git synced 2024-12-23 17:45:28 +00:00

fixed script error

This commit is contained in:
Nikolay Korolev 2020-05-14 15:26:59 +03:00 committed by GitHub
parent 9b162554ca
commit b01987719e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: