From 85f49d15ae1776f32212c943a91f71ef2930057a Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Sat, 5 Apr 2025 14:50:02 -0500 Subject: [PATCH] fix crash when monster targets PC with field spell --- src/game/boe.combat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/boe.combat.cpp b/src/game/boe.combat.cpp index a146ef6d..6335eb87 100644 --- a/src/game/boe.combat.cpp +++ b/src/game/boe.combat.cpp @@ -3121,7 +3121,7 @@ void monst_basic_abil(short m_num, std::pair abil, iLiving* univ.party.gold = std::max(0, univ.party.gold - get_ran(1,0,abil.second.gen.strength) - abil.second.gen.strength); break; case eMonstAbil::FIELD: - place_spell_pattern(eSpellPat(abil.second.gen.strength), m_target->direction + 6, targ_space, abil.second.gen.fld, 7); + place_spell_pattern(eSpellPat(abil.second.gen.strength), target->direction + 6, targ_space, abil.second.gen.fld, 7); break; // Non-basic abilities case eMonstAbil::MISSILE: case eMonstAbil::MISSILE_WEB: case eMonstAbil::RAY_HEAT: