aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--boxes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/boxes.cpp b/boxes.cpp
index 24b1a8be47..7740dd38dd 100644
--- a/boxes.cpp
+++ b/boxes.cpp
@@ -46,7 +46,7 @@ int Scumm::getBoxScale(int box)
if (_features & GF_NO_SCALLING)
return (255);
Box *ptr = getBoxBaseAddr(box);
- if (!box)
+ if (!ptr)
return 255;
return FROM_LE_16(ptr->scale);
}