Skip to content

Commit

Permalink
StackInv Bug fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
10sa committed Jun 1, 2017
1 parent 5b50313 commit e3d192c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nutscript/gamemode/sh_util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ function nut.util.StackInv(inventory, class, quantity, data)
local stack, index
quantity = quantity or 1

if (!IsValid(data)) then
if (data == nil || type(data) != "table") then
data = { };
end

Expand Down

0 comments on commit e3d192c

Please sign in to comment.