fix read from deleted entity
authorMartin Taibr <taibr.martin@gmail.com>
Thu, 16 Jan 2020 13:51:38 +0000 (14:51 +0100)
committerMartin Taibr <taibr.martin@gmail.com>
Thu, 16 Jan 2020 13:51:38 +0000 (14:51 +0100)
qcsrc/common/weapons/weapon/electro.qc

index 85f2df7..f7ac372 100644 (file)
@@ -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;
                        }