Crash-Bug-Fix: Added check for attacker and victim in the hit function (thanks Lyceq)
This commit is contained in:
@@ -36,6 +36,7 @@ Xlist (mlist, olist, rlist, zlist, slist, tlist, qlist)
|
|||||||
(lots of major bugfixes too)
|
(lots of major bugfixes too)
|
||||||
[May 15 2009] - Jamdog
|
[May 15 2009] - Jamdog
|
||||||
Fixed variable definition halfway through do_oasis_zedit to allow compilation in MSVC. (thanks Lyceq)
|
Fixed variable definition halfway through do_oasis_zedit to allow compilation in MSVC. (thanks Lyceq)
|
||||||
|
Crash-Bug-Fix: Added check for attacker and victim in the hit function (thanks Lyceq)
|
||||||
[May 13 2009] - Jamdog
|
[May 13 2009] - Jamdog
|
||||||
Bug-Fix: quest join check for previous quest completion, and validation checks for prev and next quests in qedit. (thanks drefs)
|
Bug-Fix: quest join check for previous quest completion, and validation checks for prev and next quests in qedit. (thanks drefs)
|
||||||
[Apr 13 2009] - Jamdog
|
[Apr 13 2009] - Jamdog
|
||||||
|
|||||||
@@ -870,6 +870,9 @@ void hit(struct char_data *ch, struct char_data *victim, int type)
|
|||||||
struct obj_data *wielded = GET_EQ(ch, WEAR_WIELD);
|
struct obj_data *wielded = GET_EQ(ch, WEAR_WIELD);
|
||||||
int w_type, victim_ac, calc_thaco, dam, diceroll;
|
int w_type, victim_ac, calc_thaco, dam, diceroll;
|
||||||
|
|
||||||
|
/* Check that the attacker and victim exist */
|
||||||
|
if (!ch || !victim) return;
|
||||||
|
|
||||||
/* check if the character has a fight trigger */
|
/* check if the character has a fight trigger */
|
||||||
fight_mtrigger(ch);
|
fight_mtrigger(ch);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user