# HG changeset patch # User John "Elwin" Edwards # Date 1515798159 18000 # Node ID 1e1c81fbb533fef8f125a85fdbfdaf3f40ae7731 # Parent fe6b7a1a6dfc8b2485a6aef3be3347263f4db8e8 Rogue V5: fix elemental wands. Bolts often failed to hit, due to some struct members not being initialized. Reported by 'LazyCat' from RogueTemple. diff -r fe6b7a1a6dfc -r 1e1c81fbb533 rogue5/sticks.c --- 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;