Skip to content

Commit

Permalink
fix for a rare error condition
Browse files Browse the repository at this point in the history
  • Loading branch information
blind-coder committed Jul 27, 2015
1 parent 9927e4a commit 7e91efa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion media/lua/client/ISUI/hotbar_inventorypage.lua
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,12 @@ function HotBarISInventoryItem:render() -- {{{
local alpha = 0.3;

if self.object.count > 0 then
texture = getSpecificPlayer(self.parent.player):getInventory():FindAndReturn(self.object.item):getTex();
if texture == nil then
local i = getSpecificPlayer(self.parent.player):getInventory():FindAndReturn(self.object.item);
if i ~= nil then
texture = i:getTex();
end
end
--self.drop:setVisible(true);
alpha = 1;
end
Expand Down

0 comments on commit 7e91efa

Please sign in to comment.