From de7b22311242b44746a369e6ff3fdfcedc2ace1e Mon Sep 17 00:00:00 2001 From: terencehill Date: Sat, 3 Apr 2021 23:18:29 +0200 Subject: [PATCH] When "a CSQC entity changed its type" remove it from all intrusive lists it is on before updating it, possible fix for #2565 "Infinite IntrusiveList in client" --- qcsrc/client/main.qc | 1 + 1 file changed, 1 insertion(+) diff --git a/qcsrc/client/main.qc b/qcsrc/client/main.qc index 6978247ab..b6e5a87ed 100644 --- a/qcsrc/client/main.qc +++ b/qcsrc/client/main.qc @@ -877,6 +877,7 @@ void CSQC_Ent_Update(entity this, bool isnew) { LOG_INFOF("A CSQC entity changed its type! (edict: %d, server: %d, type: %d -> %d)", etof(this), this.entnum, this.enttype, t); Ent_Remove(this); + ONREMOVE(this); clearentity(this); isnew = true; } -- 2.39.2