From ea60f9f78bac505a5aeeb4d34b927f04ec3121b3 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Sat, 11 Feb 2017 11:24:52 -0500 Subject: world bg, other fixes --- src/inventory.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/inventory.cpp') 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); -- cgit v1.2.3