Skip to content

Commit

Permalink
check if ar_engine is not nullptr
Browse files Browse the repository at this point in the history
  • Loading branch information
tritonas00 committed Mar 5, 2021
1 parent c37d55a commit abebe86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/main/physics/Actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit abebe86

Please # to comment.