1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-28 23:36:41 +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:
Torben Carrington 2013-05-26 19:33:45 -07:00
parent 5fac75845c
commit feb180724c

View file

@ -30,6 +30,7 @@ namespace MWMechanics
// AI
CreatureStats& creatureStats = MWWorld::Class::get (ptr).getCreatureStats (ptr);
if(!MWBase::Environment::get().getWindowManager()->isGuiMode())
creatureStats.getAiSequence().execute (ptr);
}