Commit 7b8dbd22 authored by hybrid's avatar hybrid

Moved the variable to avoid warning.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1309 dfc29bdd-3216-0410-991c-e03cc46cb475
parent ec8f03d7
...@@ -70,10 +70,10 @@ IImage* CImageLoaderWAL::loadImage(irr::io::IReadFile* file) const ...@@ -70,10 +70,10 @@ IImage* CImageLoaderWAL::loadImage(irr::io::IReadFile* file) const
// Try to get the color palette from elsewhere (usually in a pak along with the WAL). // Try to get the color palette from elsewhere (usually in a pak along with the WAL).
// If this fails we use the DefaultPaletteQ2. // If this fails we use the DefaultPaletteQ2.
static s32 * palette = 0; static s32 * palette = 0;
s32 loadedPalette[256];
if (!palette) if (!palette)
{ {
#if TRY_LOADING_PALETTE_FROM_FILE #if TRY_LOADING_PALETTE_FROM_FILE
s32 loadedPalette[256];
IImage * paletteImage; IImage * paletteImage;
// Look in a couple different places... // Look in a couple different places...
paletteImage = createImageFromFile("pics/colormap.pcx"); paletteImage = createImageFromFile("pics/colormap.pcx");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment