mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-18 14:41:40 +00:00
- fixed: The minimum parameter count for an action function is 3, so the DEHSUPP parser needs to take this into account when validating the code pointers.
This commit is contained in:
parent
95f3a9909c
commit
ee3c41bf7b
1 changed files with 2 additions and 2 deletions
|
@ -2723,9 +2723,9 @@ static bool LoadDehSupp ()
|
|||
else
|
||||
{
|
||||
TArray<DWORD> &args = sym->Variants[0].ArgFlags;
|
||||
if (args.Size() != 0 && !(args[0] & VARF_Optional))
|
||||
if (args.Size() > 3 && !(args[3] & VARF_Optional))
|
||||
{
|
||||
sc.ScriptError("Incompatible code pointer '%s'", sc.String);
|
||||
sc.ScriptMessage("Incompatible code pointer '%s' %d, %d", sc.String, args.Size(), args.Size() > 3? args[3] : 0);
|
||||
}
|
||||
}
|
||||
Actions.Push(sym);
|
||||
|
|
Loading…
Reference in a new issue