Skip to content

Commit

Permalink
prevents game from crashing when you exit a level while picking somet…
Browse files Browse the repository at this point in the history
…hing up.

fixes hawkthorne#1202
  • Loading branch information
NimbusBP1729 committed Apr 5, 2013
1 parent f5ab0fa commit 4c16ab2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/nodes/door.lua
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ function Door:keypressed( button, player)
if self.hideable and self.hidden then return end
if button == self.button or button=="INTERACT" then
self:switch(player)
return true
end
end

Expand Down

0 comments on commit 4c16ab2

Please sign in to comment.