From f6bb33787bbb1742a5fed068bb0c07f1874cdde2 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 9 Dec 2018 10:13:43 +0200 Subject: [PATCH] - fixed Actor.A_StopSound() native call Wrong function overload was selected by compiler https://forum.zdoom.org/viewtopic.php?t=62820 --- src/scripting/vmthunks_actors.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/scripting/vmthunks_actors.cpp b/src/scripting/vmthunks_actors.cpp index 2823d9263..a067a296e 100644 --- a/src/scripting/vmthunks_actors.cpp +++ b/src/scripting/vmthunks_actors.cpp @@ -128,7 +128,12 @@ DEFINE_ACTION_FUNCTION_NATIVE(AActor, GetPointer, COPY_AAPTR) // //========================================================================== -DEFINE_ACTION_FUNCTION_NATIVE(AActor, A_StopSound, S_StopSound) +static void NativeStopSound(AActor *actor, int slot) +{ + S_StopSound(actor, slot); +} + +DEFINE_ACTION_FUNCTION_NATIVE(AActor, A_StopSound, NativeStopSound) { PARAM_SELF_PROLOGUE(AActor); PARAM_INT(slot);