use lua_Integer

This commit is contained in:
Jacek Jendrzej
2017-05-10 15:35:44 +02:00
parent 27eb80eb5b
commit 843703b175

View File

@@ -89,7 +89,7 @@ int CLuaInstCCWindow::CCWindowNew(lua_State *L)
tableLookup(L, "name", name) || tableLookup(L, "title", name) || tableLookup(L, "caption", name); tableLookup(L, "name", name) || tableLookup(L, "title", name) || tableLookup(L, "caption", name);
tableLookup(L, "icon", icon); tableLookup(L, "icon", icon);
int has_shadow = CC_SHADOW_OFF; lua_Integer has_shadow = CC_SHADOW_OFF;
if (!tableLookup(L, "has_shadow", has_shadow)) { if (!tableLookup(L, "has_shadow", has_shadow)) {
tmp1 = "false"; tmp1 = "false";
if (tableLookup(L, "has_shadow", tmp1)) if (tableLookup(L, "has_shadow", tmp1))