aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/m4/graphics.cpp6
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");
}
}