mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-13 13:10:53 +00:00
proper fix for getPathToDestBox
svn-id: r7721
This commit is contained in:
parent
46abb7998f
commit
c8169afe2b
@ -571,7 +571,13 @@ int Scumm::getPathToDestBox(byte from, byte to) {
|
||||
if (from == to)
|
||||
return to;
|
||||
|
||||
assert(from < numOfBoxes || from == Actor::INVALID_BOX);
|
||||
if (to == Actor::INVALID_BOX)
|
||||
return -1;
|
||||
|
||||
if (from == Actor::INVALID_BOX)
|
||||
return to;
|
||||
|
||||
assert(from < numOfBoxes);
|
||||
assert(to < numOfBoxes);
|
||||
|
||||
boxm = getBoxMatrixBaseAddr();
|
||||
|
Loading…
x
Reference in New Issue
Block a user