Skip to content

Commit

Permalink
revert 'fix' it wasn't broken
Browse files Browse the repository at this point in the history
  • Loading branch information
emmachase committed Nov 20, 2019
1 parent 93a4978 commit 52393a4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/engine/gpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,7 @@ namespace riko::gpu {
}

static int gpu_set_palette_color(lua_State *L) {
int slot = getColor(L, 1) - 1;
if (slot < 0 || slot >= COLOR_LIMIT) return 0;
int slot = getColor(L, 1);

auto r = static_cast<Uint8>luaL_checkint(L, 2);
auto g = static_cast<Uint8>luaL_checkint(L, 3);
Expand Down

0 comments on commit 52393a4

Please sign in to comment.