From 3bbef8bde526c5d96be0a515576a39b1fb817b4f Mon Sep 17 00:00:00 2001 From: milek7 Date: Sat, 19 Aug 2017 13:09:14 +0200 Subject: [PATCH] fix another missing sound crash --- DynObj.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DynObj.cpp b/DynObj.cpp index 8c4b9409..7ae79f61 100644 --- a/DynObj.cpp +++ b/DynObj.cpp @@ -3736,7 +3736,7 @@ void TDynamicObject::RenderSounds() } enginevolume = (enginevolume + vol) * 0.5; if( enginevolume < 0.01 ) { - rsSilnik->stop(); + if (rsSilnik) rsSilnik->stop(); } if ( (( MoverParameters->EngineType == ElectricSeriesMotor ) || ( MoverParameters->EngineType == ElectricInductionMotor ))