mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r13044) -Fix: deleting an already deleted window.
This commit is contained in:
parent
9066a961e7
commit
568464aa96
@ -1635,7 +1635,6 @@ static void NetworkJoinStatusWindowWndProc(Window *w, WindowEvent *e)
|
|||||||
case WE_CLICK:
|
case WE_CLICK:
|
||||||
if (e->we.click.widget == 2) { //Disconnect button
|
if (e->we.click.widget == 2) { //Disconnect button
|
||||||
NetworkDisconnect();
|
NetworkDisconnect();
|
||||||
delete w;
|
|
||||||
SwitchMode(SM_MENU);
|
SwitchMode(SM_MENU);
|
||||||
ShowNetworkGameWindow();
|
ShowNetworkGameWindow();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user