From abebe86799d08049ba617852b2dc27db3289389f Mon Sep 17 00:00:00 2001 From: tritonas00 Date: Fri, 5 Mar 2021 20:31:09 +0200 Subject: [PATCH] check if ar_engine is not nullptr --- source/main/physics/Actor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/main/physics/Actor.cpp b/source/main/physics/Actor.cpp index e0f222bdeb..ffe3a3f991 100644 --- a/source/main/physics/Actor.cpp +++ b/source/main/physics/Actor.cpp @@ -618,7 +618,7 @@ void Actor::CalcNetwork() else SOUND_STOP(ar_instance_id, SS_TRIG_HORN); - if (m_net_reverse_light && ar_engine->IsRunning()) + if (m_net_reverse_light && ar_engine && ar_engine->IsRunning()) SOUND_START(ar_instance_id, SS_TRIG_REVERSE_GEAR); else SOUND_STOP(ar_instance_id, SS_TRIG_REVERSE_GEAR);