Replaced use of luaL_getinteger() with getint() in graphics.c

This commit is contained in:
rxi
2014-06-21 00:49:15 +01:00
parent 579c06a617
commit 78ab841f78

View File

@@ -201,7 +201,7 @@ int l_graphics_getPalette(lua_State *L) {
return 1;
} else {
int idx = luaL_checkinteger(L, 1);
int idx = luaL_checkint(L, 1);
if (idx < 0 || idx > 0xff) return 0;
outp(0x03c6, 0xff);
outp(0x03c7, idx);