Skip to content

Commit

Permalink
don't dismiss a nil view
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Oct 2, 2023
1 parent bcfbfe5 commit d2ad861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/caravan/trade.lua
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ end

function TradeScreen:onRenderFrame()
if not df.global.game.main_interface.trade.open then
view:dismiss()
if view then view:dismiss() end
elseif self.reset_pending then
self.reset_pending = nil
self.trade_window:reset_cache()
Expand Down

0 comments on commit d2ad861

Please sign in to comment.