fix assert for mi_demo2

svn-id: r7698
This commit is contained in:
Max Horn 2003-05-19 19:52:08 +00:00
parent 7bf95c0cf0
commit 1e7f246755

View File

@ -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();