Skip to content

Commit

Permalink
A new attempt to fix one of the owner issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinFunk committed Aug 18, 2014
1 parent c1e6db5 commit ac28476
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/kinv/items/pointshop/sh_base_playermodel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,13 @@ end

function ITEM:PlayerSetModel( ply )
if not IsValid( ply ) or not IsValid( self:GetOwner( ) ) then
KLogf( 5, "Invalid ply or owner: ply %s (%s) owner %s (%s)",
tostring(ply), type(ply),
tostring(self:GetOwner()), type(self:GetOwner()) )
return
end

if not ply == self:GetOwner( ) then
if ply != self:GetOwner( ) then
return
end

Expand Down

0 comments on commit ac28476

Please sign in to comment.