From 899a2a12e4fc7270fdb5966d6ff6f9f7f02e4f75 Mon Sep 17 00:00:00 2001 From: TimePath Date: Tue, 17 Nov 2015 18:22:00 +1100 Subject: [PATCH] ent_cs: fix strunzone crash --- qcsrc/common/ent_cs.qc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qcsrc/common/ent_cs.qc b/qcsrc/common/ent_cs.qc index e016dd32d..3132ec323 100644 --- a/qcsrc/common/ent_cs.qc +++ b/qcsrc/common/ent_cs.qc @@ -134,7 +134,11 @@ this.has_origin = true; this.origin = e.origin; // `cl_forceplayermodels 1` sounds will be wrong until the player has been in the PVS, but so be it - this.model = e.model; + if (this.model != e.model) + { + if (this.model) strunzone(this.model); + this.model = strzone(e.model); + } } } -- 2.39.2