Aircraft model reinit deletes sound effect samples, but leaves them defined in the sample group, so a reload doesn't re-add them.

This commit is contained in:
Dan Wickstrom
2019-07-30 16:36:49 +01:00
committed by James Turner
parent b155f2e40f
commit 01f689a0e4
+3
View File
@@ -83,6 +83,9 @@ SGXmlSound::~SGXmlSound()
if (_sample)
_sample->stop();
if (_sgrp && (_name != ""))
_sgrp->remove(_name);
_volume.clear();
_pitch.clear();
}