fixing indentation error and return object delegate cycle

This commit is contained in:
Avelino 2016-08-17 20:23:08 -03:00
parent f3bb11ef99
commit 48842f0979

View File

@ -972,8 +972,10 @@ SQRESULT sq_setdelegate(HSQUIRRELVM v,SQInteger idx)
case OT_TABLE:
if(type(mt) == OT_TABLE) {
if(!_table(self)->SetDelegate(_table(mt))) {
return sq_throwerror(v, _SC("delagate cycle")); v->Pop();}
return sq_throwerror(v, _SC("delagate cycle"));
}
v->Pop();
}
else if(type(mt)==OT_NULL) {
_table(self)->SetDelegate(NULL); v->Pop(); }
else return sq_aux_invalidtype(v,type);