From b1315d17846d235292e05a578995a85c3411502f Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Sat, 27 Jul 2024 10:43:58 +1000 Subject: [PATCH] Update StarPlayerInventory.cpp --- source/game/StarPlayerInventory.cpp | 2 ++ 1 file changed, 2 insertions(+) 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) {