From 395c6af01df94be06f8be871034711b61f47141f Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 18 Mar 2020 09:12:55 +1000 Subject: [PATCH] If the player state doesn't belong to the player, attach a new one when spawning, likely fixes some strange issues --- qcsrc/common/state.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/common/state.qc b/qcsrc/common/state.qc index 0f40acfc6..14b22e991 100644 --- a/qcsrc/common/state.qc +++ b/qcsrc/common/state.qc @@ -5,7 +5,7 @@ void Inventory_delete(entity this); void PlayerState_attach(entity this) { - if (PS(this)) + if (PS(this) && PS(this).m_client == this) return; this._ps = NEW(PlayerState, this); -- 2.39.2