]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/state.qc
Port accuracy to ClientState
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / state.qc
index a47188422ebea5d562e3e090445ee0b216cb0877..9774bd5b9eb1a8a5bc7ba25eaf873e983174e2b4 100644 (file)
@@ -69,6 +69,7 @@ void PlayerScore_Detach(entity this);
 
 void ClientState_detach(entity this)
 {
+    accuracy_free(this); // TODO: needs to be before CS() is deleted!
        delete(CS(this));
        this._cs = NULL;
 
@@ -80,7 +81,6 @@ void ClientState_detach(entity this)
     anticheat_report_to_eventlog(this);
     playerdemo_shutdown(this);
     entcs_detach(this);
-    accuracy_free(this);
     ClientData_Detach(this);
     PlayerScore_Detach(this);
 }