Merge branch 'miami' into lcs

* miami:
  Fix oneshot audio crash
This commit is contained in:
Sergeanur 2021-05-17 08:06:34 +03:00
commit bd70540b53

View file

@ -90,6 +90,8 @@ cAudioScriptObject::SaveAllAudioScriptObjects(uint8 *buf, uint32 *size)
void
PlayOneShotScriptObject(uint8 id, CVector const &pos)
{
if (!DMAudio.IsAudioInitialised()) return;
cAudioScriptObject *audioScriptObject = new cAudioScriptObject();
audioScriptObject->Posn = pos;
audioScriptObject->AudioId = id;