mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-06 18:00:44 +00:00
ADL: Fix bug in item taking
This commit is contained in:
parent
e1fb585357
commit
475eb0cc95
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user