1
0
Fork 0

(svn r17402) -Fix (r16425): During every save a few slots on the squirrel stack were leaked

release/1.0
Yexo 2009-09-03 11:32:16 +00:00
parent 75aad2a186
commit 48e1a5a350
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ bool Squirrel::CallMethod(HSQOBJECT instance, const char *method_name, HSQOBJECT
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 (!this->IsSuspended()) sq_settop(this->vm, top);
if (suspend == -1) sq_settop(this->vm, top);
/* Restore the return-value location. */
this->vm->_suspended_target = last_target;