mirror of https://github.com/OpenTTD/OpenTTD
Fix: Wrong error message about script Save() returned value (#14334)
parent
a6de925ba6
commit
9339b8270c
|
@ -545,7 +545,7 @@ void ScriptInstance::Save()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!sq_istable(savedata)) {
|
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();
|
SaveEmpty();
|
||||||
this->engine->CrashOccurred();
|
this->engine->CrashOccurred();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue