Fixed VM abort with null activator for SecretTrigger object

https://forum.zdoom.org/viewtopic.php?t=57612
This commit is contained in:
alexey.lysiuk 2017-08-18 11:25:33 +03:00
commit 69e7bb57d4
3 changed files with 12 additions and 1 deletions

View file

@ -602,6 +602,16 @@ DEFINE_ACTION_FUNCTION(AActor, GiveSecret)
return 0;
}
DEFINE_ACTION_FUNCTION(FLevelLocals, GiveSecret)
{
PARAM_PROLOGUE;
PARAM_OBJECT(activator, AActor);
PARAM_BOOL_DEF(printmessage);
PARAM_BOOL_DEF(playsound);
P_GiveSecret(activator, printmessage, playsound, -1);
return 0;
}
//============================================================================
//
// P_PlayerOnSpecialFlat