Skip to content

Commit

Permalink
Partly Fix #127
Browse files Browse the repository at this point in the history
This change will partly fix part `A` of this issue.

When dismissing two background panes in quick succession, the game will no longer crash, but instead just fail to dismiss the second background pane.
  • Loading branch information
Lemonymous committed Mar 29, 2022
1 parent 518768d commit c56fad2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/mod_loader/ui/widgets/base.lua
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ end
element successfully obtained focus.
--]]
function Ui:setfocus()
if not self.visible then return false end
if not self.visible or self.root == nil then return false end

self.root:setfocus(self)
end
Expand Down

0 comments on commit c56fad2

Please sign in to comment.