From 98fd381564309f4d1cd15423821b2f2e8d65a00c Mon Sep 17 00:00:00 2001 From: Jeffrey Haines Date: Sat, 29 Mar 2014 21:25:20 -0400 Subject: [PATCH] Feature #1154 Not all NPCs get aggressive when one is attacked Compiling fix --- apps/openmw/mwmechanics/mechanicsmanagerimp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwmechanics/mechanicsmanagerimp.cpp b/apps/openmw/mwmechanics/mechanicsmanagerimp.cpp index 2c51e0083..534fc941b 100644 --- a/apps/openmw/mwmechanics/mechanicsmanagerimp.cpp +++ b/apps/openmw/mwmechanics/mechanicsmanagerimp.cpp @@ -843,7 +843,7 @@ namespace MWMechanics // TODO: An actor reacts differently based on different values of AI_Fight and AI_Flee. // Actor has reported the crime, will the actor fight the offender? - if (creatureStats.getAiSetting(CreatureStats::AI_Fight).getModified > 0) + if (creatureStats.getAiSetting(CreatureStats::AI_Fight).getModified() > 0) { creatureStats.getAiSequence().stack(AiCombat(offender)); creatureStats.setHostile(true);