(svn r16532) -Fix [Squirrel]: Don't copy an object when we just checked that the pointer to it is NULL

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
yexo 15 years ago
parent e3ba9c487f
commit 9db1f5925c

@ -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;

Loading…
Cancel
Save