mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-11 19:54:03 +00:00
SHERLOCK: RT: Fix crash showing folder to Watson
This commit is contained in:
parent
d4774d1cb2
commit
ee1ef54f37
@ -641,10 +641,12 @@ void WidgetInventory::handleEvents() {
|
||||
bool found = false;
|
||||
if (ui._bgFound != -1) {
|
||||
if (ui._personFound) {
|
||||
Person &person = people[ui._bgFound - 1000];
|
||||
|
||||
for (int idx = 0; idx < 2; ++idx) {
|
||||
if (!people[ui._bgFound - 1000]._use[idx]._verb.compareToIgnoreCase(_verb) &&
|
||||
!people[ui._bgFound - 1000]._use[idx]._target.compareToIgnoreCase(_invTarget)) {
|
||||
ui.checkAction(people[ui._bgFound - 1000]._use[idx], ui._bgFound);
|
||||
if (!person._use[idx]._verb.compareToIgnoreCase(_verb) &&
|
||||
!person._use[idx]._target.compareToIgnoreCase(_invTarget)) {
|
||||
ui.checkAction(person._use[idx], ui._bgFound);
|
||||
found = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user