Don't attempt to play unset weather sounds

This commit is contained in:
scrawl 2015-11-28 05:55:36 +01:00
parent 5b8fd79b4b
commit d97dda05c9

View file

@ -158,6 +158,9 @@ Weather::Weather(const std::string& name,
else else
mAmbientLoopSoundID = fallback.getFallbackString("Weather_" + name + "_Ambient_Loop_Sound_ID"); mAmbientLoopSoundID = fallback.getFallbackString("Weather_" + name + "_Ambient_Loop_Sound_ID");
if (Misc::StringUtils::ciEqual(mAmbientLoopSoundID, "None"))
mAmbientLoopSoundID.clear();
/* /*
Unhandled: Unhandled:
Rain Diameter=600 ? Rain Diameter=600 ?