]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/ent_cs.qc
Unzone and reset netname & model to null when removing entcs (potential fix for the...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / ent_cs.qc
index 419bbb6a15757a44f8ff102c569482dc00ff8e6a..f308530d50d7d475e020257e67503bc5606dc858 100644 (file)
@@ -154,6 +154,10 @@ MACRO_END
                int n = this.sv_entnum;
                entity e = entcs_receiver(n);
                entcs_receiver(n, NULL);
+               if (e.netname) strunzone(e.netname);
+               e.netname = string_null;
+               if (e.model) strunzone(e.model);
+               e.model = string_null;
                if (e != this) delete(e);
        }