From f7ef9326297114e30de4fdf00d185394bd57e1a7 Mon Sep 17 00:00:00 2001 From: MysterD Date: Tue, 11 Apr 2023 14:52:24 -0700 Subject: [PATCH] Prevent script error in extended-movset --- mods/extended-moveset.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/extended-moveset.lua b/mods/extended-moveset.lua index 2cd8644d2..1ff1f6bff 100644 --- a/mods/extended-moveset.lua +++ b/mods/extended-moveset.lua @@ -1163,7 +1163,7 @@ function act_walking(m) end function act_hold_walking(m) - if m.heldObj.behavior == bhvJumpingBox then + if m.heldObj ~= nil and m.heldObj.behavior == bhvJumpingBox then return set_mario_action(m, ACT_CRAZY_BOX_BOUNCE, 0) end