From 46d8ccd2242c330f7a5470f2d1e13bb260ebd78c Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Sat, 29 Nov 2025 11:18:33 +0000 Subject: [PATCH] Change: Validate action 2 loaded list does not overlap special types. --- nml/actions/action2real.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nml/actions/action2real.py b/nml/actions/action2real.py index 52e2fe37c..8f73650b1 100644 --- a/nml/actions/action2real.py +++ b/nml/actions/action2real.py @@ -89,6 +89,11 @@ def get_real_action2s(spritegroup, feature): else: loaded_list.append(action1_index) + if len(loaded_list) >= 0x80: + raise generic.ScriptError("Too many 'loaded' sprite set(s).", spritegroup.pos) + if len(loading_list) >= 0xFF: + raise generic.ScriptError("Too many 'loading' sprite set(s).", spritegroup.pos) + actions.append( Action2Real( feature,