diff options
author | Max Horn | 2003-05-19 19:52:08 +0000 |
---|---|---|
committer | Max Horn | 2003-05-19 19:52:08 +0000 |
commit | 1e7f246755434683453d4bd6340eafec7493be33 (patch) | |
tree | f7f32c134235f05776bba9814e0b584ca1bf085c /scumm/boxes.cpp | |
parent | 7bf95c0cf02e976ad796eef3a3e9bf2f9d81950b (diff) | |
download | scummvm-rg350-1e7f246755434683453d4bd6340eafec7493be33.tar.gz scummvm-rg350-1e7f246755434683453d4bd6340eafec7493be33.tar.bz2 scummvm-rg350-1e7f246755434683453d4bd6340eafec7493be33.zip |
fix assert for mi_demo2
svn-id: r7698
Diffstat (limited to 'scumm/boxes.cpp')
-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(); |