Fixed VM abort with null activator for SecretTrigger object
https://forum.zdoom.org/viewtopic.php?t=57612
This commit is contained in:
parent
ec42e30614
commit
69e7bb57d4
3 changed files with 12 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue