mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 13:53:52 +00:00
clean up
This commit is contained in:
parent
f5d589388c
commit
846276f747
1 changed files with 1 additions and 1 deletions
|
@ -927,7 +927,7 @@ namespace MWMechanics
|
||||||
const MWWorld::Class &cls = MWWorld::Class::get(iter->first);
|
const MWWorld::Class &cls = MWWorld::Class::get(iter->first);
|
||||||
CreatureStats &stats = cls.getCreatureStats(iter->first);
|
CreatureStats &stats = cls.getCreatureStats(iter->first);
|
||||||
|
|
||||||
if(stats.getAiSequence().getTypeId() == 3)
|
if(stats.getAiSequence().getTypeId() == AiPackage::TypeIdFollow)
|
||||||
{
|
{
|
||||||
MWMechanics::AiFollow* package = static_cast<MWMechanics::AiFollow*>(stats.getAiSequence().getActivePackage());
|
MWMechanics::AiFollow* package = static_cast<MWMechanics::AiFollow*>(stats.getAiSequence().getActivePackage());
|
||||||
if(package->getFollowedActor() == actor.getCellRef().mRefID)
|
if(package->getFollowedActor() == actor.getCellRef().mRefID)
|
||||||
|
|
Loading…
Reference in a new issue