Skip to content

Commit 4b36258

Browse files
committed
Fix respawn whitescreen
1 parent 77f1599 commit 4b36258

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Scripts/Game/RespawnSystem/EPF_BasicRespawnSystemComponent.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ class EPF_BasicRespawnSystemComponent : SCR_RespawnSystemComponent
4545
persistence.SetPersistentId(string.Empty); // Force generation of new id for dead body
4646
persistence.OverrideSelfSpawn(true);
4747

48-
// Fresh character spawn
49-
LoadCharacter(playerId, newId, null);
48+
// Fresh character spawn (NOTE: We need to push this to next frame due to a bug where on the same death frame we can not hand over a new char).
49+
GetGame().GetCallqueue().Call(LoadCharacter, playerId, newId, null);
5050
}
5151

5252
//------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)