Skip to content

Commit

Permalink
Doors: Fix uninitialized state variable
Browse files Browse the repository at this point in the history
  • Loading branch information
duane-r authored and paramat committed May 23, 2016
1 parent b9422ed commit 7681682
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mods/doors/init.lua
Expand Up @@ -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)
Expand Down

0 comments on commit 7681682

Please sign in to comment.