diff options
author | Paul Gilbert | 2010-06-23 11:28:53 +0000 |
---|---|---|
committer | Paul Gilbert | 2010-06-23 11:28:53 +0000 |
commit | fedc06060594c4f9fbd1db4511c513eb3926d135 (patch) | |
tree | 1a9c45a870cfc61ebb1a2d22d3192d8d1c72b7c1 | |
parent | 3569b496622a61eb7d82c3033b188c4cd0426ae6 (diff) | |
download | scummvm-rg350-fedc06060594c4f9fbd1db4511c513eb3926d135.tar.gz scummvm-rg350-fedc06060594c4f9fbd1db4511c513eb3926d135.tar.bz2 scummvm-rg350-fedc06060594c4f9fbd1db4511c513eb3926d135.zip |
Corrected newly added palette conversion warning
svn-id: r50176
-rw-r--r-- | engines/m4/graphics.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/m4/graphics.cpp b/engines/m4/graphics.cpp index 85d138328d..b1d590c114 100644 --- a/engines/m4/graphics.cpp +++ b/engines/m4/graphics.cpp @@ -920,10 +920,10 @@ void M4Surface::translate(RGBList *list, bool isTransparent) { for (int i = 0; i < width() * height(); ++i, ++p) { if (!isTransparent || (*p != TRANSPARENT_COLOUR_INDEX)) { - if (*p < list->size()) { - warning("Pal pointer exceeds list size"); + if (*p < list->size()) *p = palIndexes[*p]; - } + else + warning("Pal pointer exceeds list size"); } } |