Skip to content

Commit

Permalink
- fixed Actor.A_StopSound() native call
Browse files Browse the repository at this point in the history
Wrong function overload was selected by compiler

https://forum.zdoom.org/viewtopic.php?t=62820
  • Loading branch information
alexey-lysiuk committed Dec 9, 2018
1 parent 670d975 commit f6bb337
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/scripting/vmthunks_actors.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit f6bb337

Please sign in to comment.