diff options
author | glx22 <glx@openttd.org> | 2021-05-15 15:50:32 +0200 |
---|---|---|
committer | Loïc Guilloux <glx22@users.noreply.github.com> | 2021-05-15 21:08:49 +0200 |
commit | e66e25ff71d67975e4c5ba0df569339270cfafe2 (patch) | |
tree | 84521ba9a4eec6455d84abdda1b3c4867060d41e /src/window.cpp | |
parent | 2e43f918913e79ea402173f63b692b609a59de09 (diff) | |
download | openttd-e66e25ff71d67975e4c5ba0df569339270cfafe2.tar.xz |
Fix #9269, f6d5c01: Hide windows without abusing WC_INVALID
Diffstat (limited to 'src/window.cpp')
-rw-r--r-- | src/window.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.cpp b/src/window.cpp index bb7787581..036b17bcc 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -3489,6 +3489,6 @@ void RelocateAllWindows(int neww, int newh) */ PickerWindowBase::~PickerWindowBase() { - this->window_class = WC_INVALID; // stop the ancestor from freeing the already (to be) child + *this->z_position = nullptr; // stop the ancestor from freeing the already (to be) child ResetObjectToPlace(); } |