diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2017-02-11 11:24:52 -0500 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2017-02-11 11:24:52 -0500 |
commit | ea60f9f78bac505a5aeeb4d34b927f04ec3121b3 (patch) | |
tree | 15c617c9293c5a3b1011be0a19cb85396f49a3fc /src/inventory.cpp | |
parent | 27892bc40122494385bdbe5eb84aee52737f9c13 (diff) |
world bg, other fixes
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r-- | src/inventory.cpp | 3 |
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); |