mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-29 15:03:43 +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
|
||||
PlayOneShotScriptObject(uint8 id, CVector const &pos)
|
||||
{
|
||||
if (!DMAudio.IsAudioInitialised()) return;
|
||||
|
||||
cAudioScriptObject *audioScriptObject = new cAudioScriptObject();
|
||||
audioScriptObject->Posn = pos;
|
||||
audioScriptObject->AudioId = id;
|
||||
|
|
Loading…
Reference in a new issue