changeset 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 fe6b7a1a6dfc
children 000b1c5b8d63
files rogue5/sticks.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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;