From 78ab841f78acaee2fce023dfcb427e51fb9a7bb1 Mon Sep 17 00:00:00 2001 From: rxi Date: Sat, 21 Jun 2014 00:49:15 +0100 Subject: [PATCH] Replaced use of luaL_getinteger() with getint() in graphics.c --- src/graphics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics.c b/src/graphics.c index 9f6859e..1d3b2f0 100644 --- a/src/graphics.c +++ b/src/graphics.c @@ -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);