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