mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-20 17:41:33 +00:00
Ignore wrong reference class for SetHello
This commit is contained in:
parent
f2ab1913e3
commit
382d458f9c
1 changed files with 5 additions and 3 deletions
|
@ -275,9 +275,11 @@ namespace MWScript
|
|||
MWWorld::Ptr ptr = R()(runtime);
|
||||
Interpreter::Type_Integer value = runtime[0].mInteger;
|
||||
runtime.pop();
|
||||
|
||||
ptr.getClass().getCreatureStats(ptr).setAiSetting(mIndex, value);
|
||||
ptr.getClass().setBaseAISetting(ptr.getCellRef().getRefId(), mIndex, value);
|
||||
if(ptr.getClass().isActor())
|
||||
{
|
||||
ptr.getClass().getCreatureStats(ptr).setAiSetting(mIndex, value);
|
||||
ptr.getClass().setBaseAISetting(ptr.getCellRef().getRefId(), mIndex, value);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue