From: Duane Robertson Date: Sat, 21 May 2016 13:45:55 +0000 (-0500) Subject: Doors: Fix uninitialized state variable X-Git-Tag: 0.4.15~192 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7681682d28e87c23f7e986ac25cb21f8d51b883c;p=oweals%2Fminetest_game.git Doors: Fix uninitialized state variable --- diff --git a/mods/doors/init.lua b/mods/doors/init.lua index 90ddcc3d..302eb08f 100644 --- a/mods/doors/init.lua +++ b/mods/doors/init.lua @@ -140,6 +140,8 @@ function _doors.door_toggle(pos, clicker) -- fix up lvm-placed right-hinged doors, default closed if minetest.get_node(pos).name:sub(-2) == "_b" then state = 2 + else + state = 0 end else state = tonumber(state)