]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 85f2df77a8e7cc01e3eeb8f291610240095596bc..f7ac37287d9d7c6af4d97df5fa2f05f976b8084c 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;
                        }