mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-10 22:34:10 +01:00
(svn r13305) -Fix (r13039): Confirmation window sent both yes and no answers instead of just yes.
This commit is contained in:
parent
e15863fa77
commit
504d0d1ae5
@ -1208,6 +1208,8 @@ struct QueryWindow : public Window {
|
|||||||
* DeleteNonVitalWindows() to be called - we shouldn't be in a window then */
|
* DeleteNonVitalWindows() to be called - we shouldn't be in a window then */
|
||||||
QueryCallbackProc *proc = this->proc;
|
QueryCallbackProc *proc = this->proc;
|
||||||
Window *parent = this->parent;
|
Window *parent = this->parent;
|
||||||
|
/* Prevent the destructor calling the callback function */
|
||||||
|
this->proc = NULL;
|
||||||
delete this;
|
delete this;
|
||||||
if (proc != NULL) {
|
if (proc != NULL) {
|
||||||
proc(parent, true);
|
proc(parent, true);
|
||||||
|
Loading…
Reference in New Issue
Block a user