mirror of https://github.com/OpenTTD/OpenTTD
(svn r18493) -Fix: don't access something after deleting it
parent
e0393a3de1
commit
8b9a2218de
|
@ -751,6 +751,7 @@ public:
|
||||||
if (!success) {
|
if (!success) {
|
||||||
ShowErrorMessage(STR_CONTENT_ERROR_COULD_NOT_CONNECT, INVALID_STRING_ID, 0, 0);
|
ShowErrorMessage(STR_CONTENT_ERROR_COULD_NOT_CONNECT, INVALID_STRING_ID, 0, 0);
|
||||||
delete this;
|
delete this;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this->InvalidateData();
|
this->InvalidateData();
|
||||||
|
|
Loading…
Reference in New Issue