Changeset - r13509:615f26621a74
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-11-11 18:13:17
rubidium@openttd.org
(svn r18038) -Fix [FS#3290] (r17402): AIs failed to load their data from savegames by crashing them when they tried
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/script/squirrel.cpp
Show inline comments
 
@@ -229,7 +229,7 @@ bool Squirrel::CallMethod(HSQOBJECT inst
 
	if (ret != NULL) sq_getstackobj(vm, -1, ret);
 
	/* Reset the top, but don't do so for the AI main function, as we need
 
	 *  a correct stack when resuming. */
 
	if (suspend == -1) sq_settop(this->vm, top);
 
	if (suspend == -1 || !this->IsSuspended()) sq_settop(this->vm, top);
 
	/* Restore the return-value location. */
 
	this->vm->_suspended_target = last_target;
 

	
0 comments (0 inline, 0 general)