12-17-2014, 06:35 AM
This is a bug in tolua ...
Code:
int tolua_iseMonsterType (lua_State* L, int lo, int def, tolua_Error* err)
{
if (!tolua_isnumber(L,lo,def,err)) return 0;
lua_Number val = tolua_tonumber(L,lo,def);
return val >= -1.0 && val <= 28.0;
}