summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-14 14:26:59 +0200
committerGitHub <noreply@github.com>2020-05-14 14:26:59 +0200
commitb01987719ea9b20e5979b412ae32096ff3d3e6be (patch)
treed4b84981bcbad9184a2b7e6186d3cae39a676ac4 /src/control
parentfixed skinned cutscene head (diff)
downloadre3-b01987719ea9b20e5979b412ae32096ff3d3e6be.tar
re3-b01987719ea9b20e5979b412ae32096ff3d3e6be.tar.gz
re3-b01987719ea9b20e5979b412ae32096ff3d3e6be.tar.bz2
re3-b01987719ea9b20e5979b412ae32096ff3d3e6be.tar.lz
re3-b01987719ea9b20e5979b412ae32096ff3d3e6be.tar.xz
re3-b01987719ea9b20e5979b412ae32096ff3d3e6be.tar.zst
re3-b01987719ea9b20e5979b412ae32096ff3d3e6be.zip
Diffstat (limited to 'src/control')
-rw-r--r--src/control/Script.cpp3
1 files changed, 1 insertions, 2 deletions
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: