partially fix static sounds

This commit is contained in:
milek7
2017-11-10 19:57:46 +01:00
parent cb4e3bbbf3
commit d630c94e9e
4 changed files with 16 additions and 5 deletions

View File

@@ -1449,7 +1449,7 @@ event_manager::InitEvents() {
}
case tp_Sound: {
// odtworzenie dźwięku
auto *sound = sound_man->create_sound(event->asNodeName);
auto *sound = simulation::Sounds.find( event->asNodeName );
if( sound != nullptr )
event->Params[ 9 ].tsTextSound = sound;
else