From: Mario Date: Sun, 26 Jan 2025 12:09:13 +0000 (+1000) Subject: Delete the temporary gibslash entity if it returns early, fixes random crashes X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=81232a45c7bb5cf08d98cd8f2b64ae77c2388a7f;p=xonotic%2Fxonotic-data.pk3dir.git Delete the temporary gibslash entity if it returns early, fixes random crashes --- diff --git a/qcsrc/common/effects/qc/gibs.qc b/qcsrc/common/effects/qc/gibs.qc index 64a847e27..82217ab30 100644 --- a/qcsrc/common/effects/qc/gibs.qc +++ b/qcsrc/common/effects/qc/gibs.qc @@ -248,7 +248,10 @@ NET_HANDLE(net_gibsplash, bool isNew) amount *= 5; if(amount <= 0 || !isNew) + { + delete(this); return; + } setorigin(this, org); // for the sounds