aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/scumm/boxes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/boxes.cpp b/engines/scumm/boxes.cpp
index 472e04b5f3..d480209501 100644
--- a/engines/scumm/boxes.cpp
+++ b/engines/scumm/boxes.cpp
@@ -445,7 +445,7 @@ byte ScummEngine::getNumBoxes() {
return 0;
if (_game.version == 8)
return (byte)READ_LE_UINT32(ptr);
- else if (_game.features >= 5)
+ else if (_game.version >= 5)
return (byte)READ_LE_UINT16(ptr);
else
return ptr[0];