aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/scaler/thumbnail_intern.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/scaler/thumbnail_intern.cpp b/graphics/scaler/thumbnail_intern.cpp
index 9a3665abaa..329cf71186 100644
--- a/graphics/scaler/thumbnail_intern.cpp
+++ b/graphics/scaler/thumbnail_intern.cpp
@@ -110,7 +110,7 @@ static bool grabScreen565(Graphics::Surface *surf) {
if (screenFormat.bytesPerPixel == 1) {
palette = new byte[256 * 4];
assert(palette);
- g_system->grabPalette(&palette[0], 0, 256);
+ g_system->grabPalette(palette, 0, 256);
}
for (uint y = 0; y < screen->h; ++y) {