aboutsummaryrefslogtreecommitdiff
path: root/gamemode/client
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/client')
-rw-r--r--gamemode/client/cl_inventory.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/gamemode/client/cl_inventory.lua b/gamemode/client/cl_inventory.lua
index 1e8fed8..f0c4d07 100644
--- a/gamemode/client/cl_inventory.lua
+++ b/gamemode/client/cl_inventory.lua
@@ -118,6 +118,7 @@ function inv.ShowInventory()
local froment = panels[1].info.owner
local fromid = panels[1].info.id
local frompos = panels[1].info.pos
+ assert(froment:IsValid(), "Tried to drop an item from an entity that isn't valid!")
itm.DropItem(froment,fromid,frompos)
end,{})
end