Skip to content

Commit

Permalink
SCUMM: fix a regression in v0
Browse files Browse the repository at this point in the history
Found by segra.
  • Loading branch information
tobigun committed Feb 11, 2012
1 parent c010da0 commit df07d2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engines/scumm/object.cpp
Expand Up @@ -1223,7 +1223,8 @@ uint32 ScummEngine::getOBCDOffs(int object) const {
return 0;

for (i = (_numLocalObjects-1); i > 0; i--) {
if (_objs[i].obj_nr == OBJECT_V0_NR(object)) {
int nr = (_game.version != 0) ? object : OBJECT_V0_NR(object);
if (_objs[i].obj_nr == nr) {
if (_game.version == 0 && _objs[i].obj_type != OBJECT_V0_TYPE(object))
continue;
if (_objs[i].fl_object_index != 0)
Expand Down

0 comments on commit df07d2d

Please sign in to comment.