# HG changeset patch # User frosch # Date 2011-05-03 20:48:53 # Node ID d099f256ef055a6cdecdfb3abe2f59e512751714 # Parent 2e67e206a89ec8bec5e370247c746f2ceca4d61c (svn r22418) -Fix (r22417): Messed up the palette detection of the extra base grf. diff --git a/src/gfxinit.cpp b/src/gfxinit.cpp --- a/src/gfxinit.cpp +++ b/src/gfxinit.cpp @@ -183,7 +183,7 @@ static void LoadSpriteTables() * setting one, use the palette of the base set and not the global * one which might be the wrong palette for this base NewGRF. * The value set here might be overridden via action14 later. */ - switch (_use_palette) { + switch (used_set->palette) { case PAL_DOS: master->palette |= GRFP_GRF_DOS; break; case PAL_WINDOWS: master->palette |= GRFP_GRF_WINDOWS; break; default: break;