Prevent script error in extended-movset

This commit is contained in:
MysterD 2023-04-11 14:52:24 -07:00
parent 3825026faa
commit f7ef932629

View file

@ -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