mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-31 14:36:39 +00:00
AI Execution Fix - Preiovusly AiExecute was being called even when in a menu, this was not correct behavior.
This commit is contained in:
parent
5fac75845c
commit
feb180724c
1 changed files with 2 additions and 1 deletions
|
@ -30,6 +30,7 @@ namespace MWMechanics
|
||||||
|
|
||||||
// AI
|
// AI
|
||||||
CreatureStats& creatureStats = MWWorld::Class::get (ptr).getCreatureStats (ptr);
|
CreatureStats& creatureStats = MWWorld::Class::get (ptr).getCreatureStats (ptr);
|
||||||
|
if(!MWBase::Environment::get().getWindowManager()->isGuiMode())
|
||||||
creatureStats.getAiSequence().execute (ptr);
|
creatureStats.getAiSequence().execute (ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue