Skip to content

Commit 6b266e3

Browse files
authored
Change: Validate action 2 loaded list does not overlap special types. (#400)
1 parent 91275fc commit 6b266e3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nml/actions/action2real.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ def get_real_action2s(spritegroup, feature):
8989
else:
9090
loaded_list.append(action1_index)
9191

92+
if len(loaded_list) >= 0x80:
93+
raise generic.ScriptError("Too many 'loaded' sprite set(s).", spritegroup.pos)
94+
if len(loading_list) >= 0xFF:
95+
raise generic.ScriptError("Too many 'loading' sprite set(s).", spritegroup.pos)
96+
9297
actions.append(
9398
Action2Real(
9499
feature,

0 commit comments

Comments
 (0)