summaryrefslogtreecommitdiff
path: root/src/spriteloader/png.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/spriteloader/png.cpp')
-rw-r--r--src/spriteloader/png.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/spriteloader/png.cpp b/src/spriteloader/png.cpp
index abc9592e0..43301616b 100644
--- a/src/spriteloader/png.cpp
+++ b/src/spriteloader/png.cpp
@@ -191,8 +191,8 @@ static bool LoadPNG(SpriteLoader::Sprite *sprite, const char *filename, uint32 i
dst[x].b = 0;
/* Alpha channel is used from the original image (to allow transparency in remap colours) */
extern const byte _palmap_w2d[];
- byte color = row_pointer[x * sizeof(uint8)];
- dst[x].m = win_palette ? _palmap_w2d[color] : color;
+ byte colour = row_pointer[x * sizeof(uint8)];
+ dst[x].m = win_palette ? _palmap_w2d[colour] : colour;
}
} else {
dst[x].r = row_pointer[x * sizeof(uint32) + 0];