X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=qcsrc%2Fcommon%2Fstate.qc;h=14b22e991cceed2ad0bccdd2222ee899fbcab040;hb=da24db9e038f0039b0cc1f8cd775cf93c94e6cf9;hp=0f40acfc6856b65ad68446091b5a9142d3d16e13;hpb=be37ea91fb3bbd1a6fa4f0b70b32d1ea95343ad4;p=xonotic%2Fxonotic-data.pk3dir.git 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);