From f3bb11ef994006a52f01b69c7972e5b432ed042a Mon Sep 17 00:00:00 2001 From: Avelino Date: Sat, 13 Aug 2016 18:01:21 -0300 Subject: [PATCH] fixed typo, file indentation --- squirrel/sqapi.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/squirrel/sqapi.cpp b/squirrel/sqapi.cpp index a404c2a..72d942c 100644 --- a/squirrel/sqapi.cpp +++ b/squirrel/sqapi.cpp @@ -972,8 +972,8 @@ 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);