|
|
@ -365,19 +365,7 @@ namespace MWDialogue
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// check the available services of this actor
|
|
|
|
// check the available services of this actor
|
|
|
|
int services = 0;
|
|
|
|
int services = mActor.getClass().getServices(mActor);
|
|
|
|
if (mActor.getTypeName() == typeid(ESM::NPC).name())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
MWWorld::LiveCellRef<ESM::NPC>* ref = mActor.get<ESM::NPC>();
|
|
|
|
|
|
|
|
if (ref->mBase->mHasAI)
|
|
|
|
|
|
|
|
services = ref->mBase->mAiData.mServices;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (mActor.getTypeName() == typeid(ESM::Creature).name())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
MWWorld::LiveCellRef<ESM::Creature>* ref = mActor.get<ESM::Creature>();
|
|
|
|
|
|
|
|
if (ref->mBase->mHasAI)
|
|
|
|
|
|
|
|
services = ref->mBase->mAiData.mServices;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int windowServices = 0;
|
|
|
|
int windowServices = 0;
|
|
|
|
|
|
|
|
|
|
|
|