diff rogue5/sticks.c @ 295:1e1c81fbb533

Rogue V5: fix elemental wands. Bolts often failed to hit, due to some struct members not being initialized. Reported by 'LazyCat' from RogueTemple.
author John "Elwin" Edwards
date Fri, 12 Jan 2018 18:02:39 -0500
parents f502bf60e6e4
children
line wrap: on
line diff
--- a/rogue5/sticks.c	Sat Dec 30 14:15:52 2017 -0500
+++ b/rogue5/sticks.c	Fri Jan 12 18:02:39 2018 -0500
@@ -310,6 +310,8 @@
     bolt.o_type = WEAPON;
     bolt.o_which = FLAME;
     strncpy(bolt.o_hurldmg,"6x6",sizeof(bolt.o_hurldmg));
+    strncpy(bolt.o_damage,"0x0",sizeof(bolt.o_damage));
+    bolt.o_launch = -1;
     bolt.o_hplus = 100;
     bolt.o_dplus = 0;
     weap_info[FLAME].oi_name = name;