summaryrefslogtreecommitdiff
path: root/src/resources/safeopenglimagehelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/safeopenglimagehelper.cpp')
-rw-r--r--src/resources/safeopenglimagehelper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/safeopenglimagehelper.cpp b/src/resources/safeopenglimagehelper.cpp
index cb318d8b9..676812d12 100644
--- a/src/resources/safeopenglimagehelper.cpp
+++ b/src/resources/safeopenglimagehelper.cpp
@@ -93,7 +93,7 @@ Image *SafeOpenGLImageHelper::load(SDL_RWops *const rw,
{
const DyePalette *const pal = dye.getAPalete();
if (pal)
- pal->replaceAOGLColor(pixels, surf->w * surf->h);
+ DYEPALETTEP(pal, AOGLColor)(pixels, surf->w * surf->h);
break;
}
case 0: