summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2010-12-25 12:47:05 +0000
committersmatz <smatz@openttd.org>2010-12-25 12:47:05 +0000
commitb5268dccbd4da760b13114cebd44d371c3d84f56 (patch)
treed65d7da471afad3f38b26cec134b30b44c580228 /src/window.cpp
parentb323000253a471b1a8553ad46bd9f107bea07d4d (diff)
downloadopenttd-b5268dccbd4da760b13114cebd44d371c3d84f56.tar.xz
(svn r21632) -Codechange: call ResetObjectToPlace() even when current place_mode is HT_NONE
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/window.cpp b/src/window.cpp
index e9b7e6748..ae9a683ac 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -653,8 +653,7 @@ void Window::DeleteChildWindows(WindowClass wc) const
*/
Window::~Window()
{
- if ((_thd.place_mode & ~HT_DIR_MASK) != HT_NONE &&
- _thd.window_class == this->window_class &&
+ if (_thd.window_class == this->window_class &&
_thd.window_number == this->window_number) {
ResetObjectToPlace();
}