ADL: Fix bug in item taking

This commit is contained in:
Walter van Niftrik 2016-02-29 09:32:22 +01:00
parent e1fb585357
commit 475eb0cc95

View File

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