SCI: added special case for iceman when plotting course inside isSaneNodePointer

svn-id: r50960
This commit is contained in:
Martin Kiewitz 2010-07-17 13:27:07 +00:00
parent 7ac5c3ef4f
commit cb4072f978

View File

@ -37,7 +37,12 @@ static bool isSaneNodePointer(SegManager *segMan, reg_t addr) {
Node *node = segMan->lookupNode(addr);
if (!node) {
error("isSaneNodePointer: Node at %04x:%04x wasn't found", PRINT_REG(addr));
if ((g_sci->getGameId() == GID_ICEMAN) && (g_sci->getEngineState()->currentRoomNumber() == 40)) {
// ICEMAN: when plotting course, unDrawLast is called by startPlot::changeState
// there is no previous entry so we get 0 in here
} else {
error("isSaneNodePointer: Node at %04x:%04x wasn't found", PRINT_REG(addr));
}
return false;
}