XEEN: Fix 'No items available' getting repeated multiple times

This commit is contained in:
Paul Gilbert 2017-11-25 16:48:50 -05:00
parent ab7c0d38cb
commit 88ef0087e5

View File

@ -168,7 +168,7 @@ Character *ItemsDialog::execute(Character *c, ItemsMode mode) {
ds._frame = i._frame;
else
ds._frame = 14;
} else if (ds._sprites == nullptr) {
} else if (ds._sprites == nullptr && idx == 0) {
lines.push_back(Res.NO_ITEMS_AVAILABLE);
}
break;