]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/state.qc
Port scorekeeper to ClientState
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / state.qc
index 9774bd5b9eb1a8a5bc7ba25eaf873e983174e2b4..cbf9eff72a8f68ad2f9e6da25d03539f1e2f4b32 100644 (file)
@@ -70,6 +70,7 @@ void PlayerScore_Detach(entity this);
 void ClientState_detach(entity this)
 {
     accuracy_free(this); // TODO: needs to be before CS() is deleted!
+    PlayerScore_Detach(this); // what ^they^ said
        delete(CS(this));
        this._cs = NULL;
 
@@ -82,5 +83,4 @@ void ClientState_detach(entity this)
     playerdemo_shutdown(this);
     entcs_detach(this);
     ClientData_Detach(this);
-    PlayerScore_Detach(this);
 }