mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-18 19:19:29 +01:00
Fix: Wrong error message about script Save() returned value (#14334)
This commit is contained in:
parent
a6de925ba6
commit
9339b8270c
@ -545,7 +545,7 @@ void ScriptInstance::Save()
|
||||
}
|
||||
|
||||
if (!sq_istable(savedata)) {
|
||||
ScriptLog::Error(this->engine->IsSuspended() ? "This script took too long to Save." : "Save function should return a table.");
|
||||
ScriptLog::Error(this->GetOpsTillSuspend() <= 0 ? "This script took too long to Save." : "Save function should return a table.");
|
||||
SaveEmpty();
|
||||
this->engine->CrashOccurred();
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user