Skip to content

Commit

Permalink
ADL: Fix bug in item taking
Browse files Browse the repository at this point in the history
  • Loading branch information
waltervn committed Mar 9, 2016
1 parent e1fb585 commit 475eb0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/adl/adl.cpp
Expand Up @@ -178,7 +178,7 @@ void AdlEngine::takeItem(byte noun) {
}

Common::Array<byte>::const_iterator pic;
for (pic = item->roomPictures.begin(); item->roomPictures.end(); ++pic) {
for (pic = item->roomPictures.begin(); pic != item->roomPictures.end(); ++pic) {
if (*pic == _state.rooms[_state.room].curPicture) {
item->room = IDI_NONE;
item->state = IDI_ITEM_MOVED;
Expand Down

0 comments on commit 475eb0c

Please sign in to comment.