aboutsummaryrefslogtreecommitdiffstats
path: root/src/inventory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r--src/inventory.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/inventory.cpp b/src/inventory.cpp
index f1332f2..bf6b6bb 100644
--- a/src/inventory.cpp
+++ b/src/inventory.cpp
@@ -39,8 +39,7 @@ void InventorySystem::loadItems(void) {
doc.LoadFile(itemsPath);
auto item = doc.FirstChildElement("item");
- if (item == nullptr)
- UserError("No items found");
+ UserAssert(item != nullptr, "No items found");
do {
itemList.emplace(item->StrAttribute("name"), item);