Mercurial > hg > openttd
changeset 12118:03fa04920217 draft
(svn r16532) -Fix [Squirrel]: Don't copy an object when we just checked that the pointer to it is NULL
author | yexo <yexo@openttd.org> |
---|---|
date | Sun, 07 Jun 2009 15:54:37 +0000 |
parents | aecfa01ba5fb |
children | 4a13876f1ada |
files | src/3rdparty/squirrel/squirrel/sqvm.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/3rdparty/squirrel/squirrel/sqvm.cpp +++ b/src/3rdparty/squirrel/squirrel/sqvm.cpp @@ -938,7 +938,7 @@ traps -= ci->_etraps; if(sarg1 != MAX_FUNC_STACKSIZE) STK(arg1) = temp_reg; } - else { Raise_Error(_SC("trying to yield a '%s',only genenerator can be yielded"), GetTypeName(ci->_generator)); SQ_THROW();} + else { Raise_Error(_SC("trying to yield a '%s',only genenerator can be yielded"), GetTypeName(ci->_closure)); SQ_THROW();} if(Return(arg0, arg1, temp_reg)){ assert(traps == 0); outres = temp_reg;