aboutsummaryrefslogtreecommitdiff
path: root/sdl_gl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sdl_gl.cpp')
-rw-r--r--sdl_gl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdl_gl.cpp b/sdl_gl.cpp
index cb4905972c..ebdbe6398b 100644
--- a/sdl_gl.cpp
+++ b/sdl_gl.cpp
@@ -237,7 +237,7 @@ OSystem *OSystem_SDL_create(int gfx_mode, bool full_screen) {
void OSystem_SDL::set_palette(const byte *colors, uint start, uint num) {
const byte *b = colors;
uint i;
- SDL_Color *base = _cur_pal + start;
+
for(i=0;i!=num;i++) {
fb2gl_palette(i+start,b[0],b[1],b[2]);
b += 4;