aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/item.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/xeen/item.cpp')
-rw-r--r--engines/xeen/item.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/xeen/item.cpp b/engines/xeen/item.cpp
index a364dad928..5c0a55a3da 100644
--- a/engines/xeen/item.cpp
+++ b/engines/xeen/item.cpp
@@ -113,7 +113,7 @@ const char *XeenItem::getItemName(ItemCategory category, uint id) {
case CATEGORY_ACCESSORY:
return questItems[id - QUEST_OFFSET + 35 + 14];
default:
- assert(g_vm->getGameID() != GType_Swords);
+ assert(g_vm->getGameID() != GType_Swords && (id - QUEST_OFFSET + 35 + 14 + 11) < 85);
return questItems[id - QUEST_OFFSET + 35 + 14 + 11];
}
}