Changeset - r28294:a8079e5b39ac
[Not reviewed]
master
0 1 0
Peter Nelson - 12 months ago 2023-12-15 01:25:36
peter1138@openttd.org
Fix: Crash if squirrel compatibility scripts cannot be parsed. (#11589)
1 file changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/script/script_instance.cpp
Show inline comments
 
@@ -76,6 +76,10 @@ void ScriptInstance::Initialize(const st
 
	/* Register the API functions and classes */
 
	this->engine->SetGlobalPointer(this->engine);
 
	this->RegisterAPI();
 
	if (this->IsDead()) {
 
		/* Failed to register API; a message has already been logged. */
 
		return;
 
	}
 

	
 
	try {
 
		ScriptObject::SetAllowDoCommand(false);
0 comments (0 inline, 0 general)