From 9db1f5925c3512cf8bbd3c7bccd12381d07ebd1f Mon Sep 17 00:00:00 2001 From: yexo Date: Sun, 7 Jun 2009 15:54:37 +0000 Subject: (svn r16532) -Fix [Squirrel]: Don't copy an object when we just checked that the pointer to it is NULL --- src/3rdparty/squirrel/squirrel/sqvm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/3rdparty/squirrel') diff --git a/src/3rdparty/squirrel/squirrel/sqvm.cpp b/src/3rdparty/squirrel/squirrel/sqvm.cpp index fb3785787..10edc5970 100644 --- a/src/3rdparty/squirrel/squirrel/sqvm.cpp +++ b/src/3rdparty/squirrel/squirrel/sqvm.cpp @@ -938,7 +938,7 @@ common_call: 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; -- cgit v1.2.3-70-g09d2