From: Martin Taibr Date: Thu, 16 Jan 2020 13:51:38 +0000 (+0100) Subject: fix read from deleted entity X-Git-Tag: xonotic-v0.8.5~1161^2~11^2~3 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=3960e0b3f2b5902a6697efbbca34daf50e2f9d88 fix read from deleted entity --- diff --git a/qcsrc/common/weapons/weapon/electro.qc b/qcsrc/common/weapons/weapon/electro.qc index 85f2df77a8..f7ac37287d 100644 --- a/qcsrc/common/weapons/weapon/electro.qc +++ b/qcsrc/common/weapons/weapon/electro.qc @@ -160,7 +160,8 @@ void W_Electro_Bolt_Think(entity this) e.classname = "electro_orb_chain"; // explode first orb immediately, other orbs will chain with delay - W_Electro_ExplodeCombo(e); + setthink(e, W_Electro_ExplodeCombo); + e.nextthink = time; ++found; }