X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Ftriggers%2Ffunc%2Fpointparticles.qc;fp=qcsrc%2Fcommon%2Ftriggers%2Ffunc%2Fpointparticles.qc;h=e028b4c837d7b20bddc47223b060dcff0ff40c9e;hb=49dd3844a37bb91e3c48654dead867b15ce94638;hp=9286f2adbce19fb8ec741d1c827fa1ad2b2b63fc;hpb=9b23b68f560715b3c44b00f28237c054150c0c90;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/triggers/func/pointparticles.qc b/qcsrc/common/triggers/func/pointparticles.qc index 9286f2adb..e028b4c83 100644 --- a/qcsrc/common/triggers/func/pointparticles.qc +++ b/qcsrc/common/triggers/func/pointparticles.qc @@ -253,15 +253,9 @@ void Draw_PointParticles(entity this) void Ent_PointParticles_Remove(entity this) { - if(this.noise) - strunzone(this.noise); - this.noise = string_null; - if(this.bgmscript) - strunzone(this.bgmscript); - this.bgmscript = string_null; - if(this.mdl) - strunzone(this.mdl); - this.mdl = string_null; + strfree(this.noise); + strfree(this.bgmscript); + strfree(this.mdl); } NET_HANDLE(ENT_CLIENT_POINTPARTICLES, bool isnew)