diff options
author | Paul Gilbert | 2018-03-31 18:39:42 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-03-31 18:39:42 -0400 |
commit | b6fc3fd99195f2cbc1e17ea6827175855df8f8cc (patch) | |
tree | bcfde66f5491df48d4c241ef69618f197133882f /engines/xeen/dialogs/dialogs_items.cpp | |
parent | 263df996b60ea9b505be18f5eeeb3ce4c27d0fd2 (diff) | |
download | scummvm-rg350-b6fc3fd99195f2cbc1e17ea6827175855df8f8cc.tar.gz scummvm-rg350-b6fc3fd99195f2cbc1e17ea6827175855df8f8cc.tar.bz2 scummvm-rg350-b6fc3fd99195f2cbc1e17ea6827175855df8f8cc.zip |
XEEN: Change many item Id checks to use empty() function
Diffstat (limited to 'engines/xeen/dialogs/dialogs_items.cpp')
-rw-r--r-- | engines/xeen/dialogs/dialogs_items.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/xeen/dialogs/dialogs_items.cpp b/engines/xeen/dialogs/dialogs_items.cpp index f844964396..0ea835e121 100644 --- a/engines/xeen/dialogs/dialogs_items.cpp +++ b/engines/xeen/dialogs/dialogs_items.cpp @@ -904,7 +904,7 @@ int ItemsDialog::doItemOptions(Character &c, int actionIndex, int itemIndex, Ite } case ITEMMODE_RECHARGE: - if (category != CATEGORY_MISC || item._material > 9 || item._id == 53 || item._id == 0) { + if (category != CATEGORY_MISC || item.empty() || item._material > 9 || item._id == 53) { sound.playFX(21); ErrorScroll::show(_vm, Common::String::format(Res.NOT_RECHARGABLE, Res.SPELL_FAILED)); } else { |