diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-07-27 10:43:58 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-07-27 10:43:58 +1000 |
commit | b1315d17846d235292e05a578995a85c3411502f (patch) | |
tree | 867d308e062e3307d72185481cc86435dfeb8317 /source/game/StarPlayerInventory.cpp | |
parent | c3de15c18d2720c166e71738d120849630ba8747 (diff) |
Update StarPlayerInventory.cpp
Diffstat (limited to 'source/game/StarPlayerInventory.cpp')
-rw-r--r-- | source/game/StarPlayerInventory.cpp | 2 |
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) { |