We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 417e548 commit 91590b0Copy full SHA for 91590b0
1 file changed
gamemode/sv_transition.lua
@@ -921,14 +921,13 @@ function GM:CreateTransitionObjects()
921
DbgPrint("Using global entity!")
922
else
923
ent = ents.Create(data.Class)
924
+ if not IsValid(ent) then
925
+ DbgPrint("Failed to create entity of class: " .. data.Class)
926
+ continue
927
+ end
928
ent.CreatedByLevelTransition = true
929
end
930
- if not IsValid(ent) then
- DbgPrint("Attempted to create bogus entity: " .. data.Class)
- continue
- end
931
-
932
ent.SourceMap = data.SourceMap
933
ent.ShouldDispatchSpawn = dispatchSpawn
934
-- Do key values first because we might override a few things with setters.
0 commit comments