forked from mirror/OpenTTD
(svn r21620) -Codechange: Don't consider direction bits when checking for an active highlight mode.
This commit is contained in:
@@ -653,7 +653,7 @@ void Window::DeleteChildWindows(WindowClass wc) const
|
||||
*/
|
||||
Window::~Window()
|
||||
{
|
||||
if (_thd.place_mode != HT_NONE &&
|
||||
if ((_thd.place_mode & ~HT_DIR_MASK) != HT_NONE &&
|
||||
_thd.window_class == this->window_class &&
|
||||
_thd.window_number == this->window_number) {
|
||||
ResetObjectToPlace();
|
||||
|
Reference in New Issue
Block a user