mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-29 01:19:11 +00:00
(svn r17231) -Fix [FS#3134]: AIs that crashed during Save() weren't killed as they should
This commit is contained in:
@@ -606,6 +606,7 @@ void AIInstance::Save()
|
|||||||
/* The script crashed in the Save function. We can't kill
|
/* The script crashed in the Save function. We can't kill
|
||||||
* it here, but do so in the next AI tick. */
|
* it here, but do so in the next AI tick. */
|
||||||
SaveEmpty();
|
SaveEmpty();
|
||||||
|
this->engine->CrashOccurred();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
AIObject::SetAllowDoCommand(backup_allow);
|
AIObject::SetAllowDoCommand(backup_allow);
|
||||||
|
Reference in New Issue
Block a user