Browse Source

Do not overwrite the error message.

mingodad 7 năm trước cách đây
mục cha
commit
1ea7adaa13
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      SquiLu/squirrel/sqapi.cpp

+ 1 - 1
SquiLu/squirrel/sqapi.cpp

@@ -1605,7 +1605,7 @@ SQRESULT sq_call(HSQUIRRELVM v,SQInteger params,SQBool retval,SQBool raiseerror)
 	SQObjectPtr res;
 	SQObjectPtr res;
 	if(!v->Call(v->GetUp(-(params+1)),params,v->_top-params,res,raiseerror?true:false)){
 	if(!v->Call(v->GetUp(-(params+1)),params,v->_top-params,res,raiseerror?true:false)){
         v->Pop(params); //pop args
         v->Pop(params); //pop args
-		return sq_throwerror(v,_SC("call failed"));
+		return SQ_ERROR;
 	}
 	}
 	if(!v->_suspended)
 	if(!v->_suspended)
 		v->Pop(params); //pop args
 		v->Pop(params); //pop args