Replaced use of luaL_getinteger() with getint() in graphics.c
This commit is contained in:
@@ -201,7 +201,7 @@ int l_graphics_getPalette(lua_State *L) {
|
|||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
int idx = luaL_checkinteger(L, 1);
|
int idx = luaL_checkint(L, 1);
|
||||||
if (idx < 0 || idx > 0xff) return 0;
|
if (idx < 0 || idx > 0xff) return 0;
|
||||||
outp(0x03c6, 0xff);
|
outp(0x03c6, 0xff);
|
||||||
outp(0x03c7, idx);
|
outp(0x03c7, idx);
|
||||||
|
|||||||
Reference in New Issue
Block a user