Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/game/StarPlayerInventory.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/game/StarPlayerInventory.cpp b/source/game/StarPlayerInventory.cpp
index c820459..1edcdca 100644
--- a/source/game/StarPlayerInventory.cpp
+++ b/source/game/StarPlayerInventory.cpp
@@ -1015,6 +1015,8 @@ ItemPtr& PlayerInventory::retrieve(InventorySlot const& slot) {
return guardEmpty(m_swapSlot);
else
return guardEmpty(m_trashSlot);
+
+ throw ItemException::format("Invalid inventory slot {}", jsonFromInventorySlot(slot));
}
void PlayerInventory::swapCustomBarLinks(InventorySlot a, InventorySlot b) {