summaryrefslogtreecommitdiff
path: root/src/resources/sdlimagehelper.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-24 22:58:07 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-24 23:37:03 +0300
commit3480f3ad939e2ae5d0191ed739a57e834658c32e (patch)
tree268acbda26a8a4e4849362f681e95ed8b4a6de16 /src/resources/sdlimagehelper.cpp
parentc3699037bc32dd43ae1b5501261808eb3425697c (diff)
downloadmanaverse-3480f3ad939e2ae5d0191ed739a57e834658c32e.tar.gz
manaverse-3480f3ad939e2ae5d0191ed739a57e834658c32e.tar.bz2
manaverse-3480f3ad939e2ae5d0191ed739a57e834658c32e.tar.xz
manaverse-3480f3ad939e2ae5d0191ed739a57e834658c32e.zip
Switch in replaceSColor into using custom despatcher.
Diffstat (limited to 'src/resources/sdlimagehelper.cpp')
-rw-r--r--src/resources/sdlimagehelper.cpp2
1 files changed, 1 insertions, 1 deletions
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: