mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-26 05:53:45 +00:00
Merge branch 'miami' into lcs
* miami: Fix oneshot audio crash
This commit is contained in:
commit
bd70540b53
1 changed files with 2 additions and 0 deletions
|
@ -90,6 +90,8 @@ cAudioScriptObject::SaveAllAudioScriptObjects(uint8 *buf, uint32 *size)
|
||||||
void
|
void
|
||||||
PlayOneShotScriptObject(uint8 id, CVector const &pos)
|
PlayOneShotScriptObject(uint8 id, CVector const &pos)
|
||||||
{
|
{
|
||||||
|
if (!DMAudio.IsAudioInitialised()) return;
|
||||||
|
|
||||||
cAudioScriptObject *audioScriptObject = new cAudioScriptObject();
|
cAudioScriptObject *audioScriptObject = new cAudioScriptObject();
|
||||||
audioScriptObject->Posn = pos;
|
audioScriptObject->Posn = pos;
|
||||||
audioScriptObject->AudioId = id;
|
audioScriptObject->AudioId = id;
|
||||||
|
|
Loading…
Reference in a new issue