summaryrefslogtreecommitdiffstats
path: root/src/audio/DMAudio.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-08-20 13:47:53 +0200
committerSergeanur <s.anureev@yandex.ua>2020-08-20 13:47:53 +0200
commit0f5a77129225e2ff6587941dc11661b175df1f15 (patch)
tree21ecdab66f4daef9d53f9dcd7fcf9d9c2ad4903a /src/audio/DMAudio.cpp
parentchanged a sound enum (diff)
downloadre3-0f5a77129225e2ff6587941dc11661b175df1f15.tar
re3-0f5a77129225e2ff6587941dc11661b175df1f15.tar.gz
re3-0f5a77129225e2ff6587941dc11661b175df1f15.tar.bz2
re3-0f5a77129225e2ff6587941dc11661b175df1f15.tar.lz
re3-0f5a77129225e2ff6587941dc11661b175df1f15.tar.xz
re3-0f5a77129225e2ff6587941dc11661b175df1f15.tar.zst
re3-0f5a77129225e2ff6587941dc11661b175df1f15.zip
Diffstat (limited to '')
-rw-r--r--src/audio/DMAudio.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio/DMAudio.cpp b/src/audio/DMAudio.cpp
index dd55f76d..9d278046 100644
--- a/src/audio/DMAudio.cpp
+++ b/src/audio/DMAudio.cpp
@@ -203,7 +203,7 @@ cDMAudio::ReportCrime(eCrimeType crime, const CVector &pos)
int32
cDMAudio::CreateLoopingScriptObject(cAudioScriptObject *scriptObject)
{
- int32 audioEntity = AudioManager.CreateEntity(AUDIOTYPE_SCRIPTOBJECT, (CPhysical *)scriptObject);
+ int32 audioEntity = AudioManager.CreateEntity(AUDIOTYPE_SCRIPTOBJECT, scriptObject);
if ( AEHANDLE_IS_OK(audioEntity) )
AudioManager.SetEntityStatus(audioEntity, true);
@@ -220,7 +220,7 @@ cDMAudio::DestroyLoopingScriptObject(int32 audioEntity)
void
cDMAudio::CreateOneShotScriptObject(cAudioScriptObject *scriptObject)
{
- int32 audioEntity = AudioManager.CreateEntity(AUDIOTYPE_SCRIPTOBJECT, (CPhysical *)scriptObject);
+ int32 audioEntity = AudioManager.CreateEntity(AUDIOTYPE_SCRIPTOBJECT, scriptObject);
if ( AEHANDLE_IS_OK(audioEntity) )
{