diff options
-rw-r--r-- | scumm/boxes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/boxes.cpp b/scumm/boxes.cpp index 3f67d524c3..11a8a6793a 100644 --- a/scumm/boxes.cpp +++ b/scumm/boxes.cpp @@ -571,7 +571,7 @@ int Scumm::getPathToDestBox(byte from, byte to) { if (from == to) return to; - assert(from < numOfBoxes); + assert(from < numOfBoxes || from == Actor::INVALID_BOX); assert(to < numOfBoxes); boxm = getBoxMatrixBaseAddr(); |