Permalink
Browse files

Remove prop_effect if its prop_dynamic is deleted

  • Loading branch information...
1 parent e3a8366 commit f61d10abb8379f87b74c92a4386d1247e3ccfe37 @robotboy655 robotboy655 committed Jun 29, 2016
Showing with 1 addition and 0 deletions.
  1. +1 −0 garrysmod/gamemodes/base/entities/entities/prop_effect.lua
@@ -29,6 +29,7 @@ function ENT:Initialize()
self:SetModel( "models/props_junk/watermelon01.mdl" )
self:DeleteOnRemove( self.AttachedEntity )
+ self.AttachedEntity:DeleteOnRemove( self )
-- Don't use the model's physics - create a box instead
self:PhysicsInitBox( min, max )

0 comments on commit f61d10a

Please sign in to comment.