diff --git a/gamemode/sv_transition.lua b/gamemode/sv_transition.lua index 18b56dd1..4e00ccbb 100644 --- a/gamemode/sv_transition.lua +++ b/gamemode/sv_transition.lua @@ -921,7 +921,9 @@ function GM:CreateTransitionObjects() DbgPrint("Using global entity!") else ent = ents.Create(data.Class) - ent.CreatedByLevelTransition = true + if IsValid(ent) then + ent.CreatedByLevelTransition = true + end end if not IsValid(ent) then