Do not trigger Undisguise on removal if we're dead (as being dead resets us anyways for the most part)

master
Icedream 2013-12-21 10:53:01 +01:00
parent 82d4581f12
commit 9c954fd952
1 changed files with 3 additions and 1 deletions

View File

@ -387,5 +387,7 @@ end
function SWEP:OnRemove()
// Do you want to get stuck as a prop forever? NO.
self:Undisguise()
if !!self && IsValid(self.Owner) && self.Owner:Alive() then
self:Undisguise()
end
end