aboutsummaryrefslogtreecommitdiff
path: root/graphics/png.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/png.cpp')
-rw-r--r--graphics/png.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/png.cpp b/graphics/png.cpp
index d0fe64bf25..5292ea0100 100644
--- a/graphics/png.cpp
+++ b/graphics/png.cpp
@@ -441,7 +441,7 @@ byte PNG::getNumColorChannels() {
}
void PNG::readPaletteChunk() {
- for (byte i = 0; i < _paletteEntries; i++) {
+ for (uint16 i = 0; i < _paletteEntries; i++) {
_palette[i * 4 + 0] = _stream->readByte(); // R
_palette[i * 4 + 1] = _stream->readByte(); // G
_palette[i * 4 + 2] = _stream->readByte(); // B