From 3480f3ad939e2ae5d0191ed739a57e834658c32e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 24 May 2017 22:58:07 +0300 Subject: Switch in replaceSColor into using custom despatcher. --- src/resources/sdlimagehelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/resources/sdlimagehelper.cpp') diff --git a/src/resources/sdlimagehelper.cpp b/src/resources/sdlimagehelper.cpp index 332a3f034..de362ef60 100644 --- a/src/resources/sdlimagehelper.cpp +++ b/src/resources/sdlimagehelper.cpp @@ -88,7 +88,7 @@ Image *SDLImageHelper::load(SDL_RWops *const rw, Dye const &dye) { const DyePalette *const pal = dye.getSPalete(); if (pal) - pal->replaceSColor(pixels, surf->w * surf->h); + DYEPALETTEP(pal, SColor)(pixels, surf->w * surf->h); break; } case 2: -- cgit v1.2.3-70-g09d2