ソースを参照

After added a new member to SQRegFunction that indicates if a method is static, forgot to commit the change on the new api function that uses it.

mingodad 13 年 前
コミット
77aea3f62e
1 ファイル変更1 行追加1 行削除
  1. 1 1
      squirrel/sqapi.cpp

+ 1 - 1
squirrel/sqapi.cpp

@@ -1693,7 +1693,7 @@ void sq_insert_reg_funcs(HSQUIRRELVM sqvm, SQRegFunction *obj_funcs){
 		sq_newclosure(sqvm,f.f,0);
 		sq_setparamscheck(sqvm,f.nparamscheck,f.typemask);
 		sq_setnativeclosurename(sqvm,-1,f.name);
-		sq_newslot(sqvm,-3,SQFalse);
+		sq_newslot(sqvm,-3,f.isStatic);
 		i++;
 	}
 }