diff options
Diffstat (limited to 'gamemode/server/entity_functions.lua')
| -rw-r--r-- | gamemode/server/entity_functions.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gamemode/server/entity_functions.lua b/gamemode/server/entity_functions.lua index 14b8df9..8f18383 100644 --- a/gamemode/server/entity_functions.lua +++ b/gamemode/server/entity_functions.lua @@ -85,6 +85,8 @@ end GMS.FadingOutProps = {} GMS.FadingInProps = {} +print("GMS_FadingInProps initalized") + function EntityMeta:Fadeout( speed ) if ( !IsValid( self ) ) then return end local speed = speed or 1 @@ -114,6 +116,7 @@ function EntityMeta:Fadein( speed ) end hook.Add( "Think", "gms_FadePropsThink", function() + if(GMS.FadingInProps == nil) then return end for k, ent in pairs( GMS.FadingInProps ) do if ( !ent or ent == NULL ) then table.remove( GMS.FadingInProps, k ) |
