mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
Ignore wrong reference class for SetHello
This commit is contained in:
parent
f2ab1913e3
commit
382d458f9c
@ -275,10 +275,12 @@ namespace MWScript
|
|||||||
MWWorld::Ptr ptr = R()(runtime);
|
MWWorld::Ptr ptr = R()(runtime);
|
||||||
Interpreter::Type_Integer value = runtime[0].mInteger;
|
Interpreter::Type_Integer value = runtime[0].mInteger;
|
||||||
runtime.pop();
|
runtime.pop();
|
||||||
|
if(ptr.getClass().isActor())
|
||||||
|
{
|
||||||
ptr.getClass().getCreatureStats(ptr).setAiSetting(mIndex, value);
|
ptr.getClass().getCreatureStats(ptr).setAiSetting(mIndex, value);
|
||||||
ptr.getClass().setBaseAISetting(ptr.getCellRef().getRefId(), mIndex, value);
|
ptr.getClass().setBaseAISetting(ptr.getCellRef().getRefId(), mIndex, value);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
template<class R>
|
template<class R>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user