Skip to content

Commit

Permalink
ENGINES: Clear gui on load if not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Nostritius authored and DrMcCoy committed Jul 22, 2018
1 parent 669259a commit 5f6c3cd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/engines/kotor/gui/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ void GUI::mouseUp() {
}

void GUI::load(const Common::UString &resref) {
if (!empty())
clearWidgets();

_guiWidth = 0;
_guiHeight = 0;

// This is only relevant to Jade Empire.
// LTI prefixed GUI definitions for the Windows version of Jade Empire
// with lti_ to support mouse and keyboard control.
Expand Down

0 comments on commit 5f6c3cd

Please sign in to comment.