aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Brown2002-05-09 20:04:53 +0000
committerJames Brown2002-05-09 20:04:53 +0000
commitdc0fef7cc961a7811a18f064905bf4650b0cf5bf (patch)
tree0d69caf5ae83b87132d0077536222f471d547b4d
parentebbe5b4ae41ee0d9c60903d448e6b9a2b171b620 (diff)
downloadscummvm-rg350-dc0fef7cc961a7811a18f064905bf4650b0cf5bf.tar.gz
scummvm-rg350-dc0fef7cc961a7811a18f064905bf4650b0cf5bf.tar.bz2
scummvm-rg350-dc0fef7cc961a7811a18f064905bf4650b0cf5bf.zip
Fix somebodys silly mistake for box scaling :)
svn-id: r4259
-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);
}