mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2026-02-18 21:47:44 +01:00
Pass actor in GearsetDataLoaded instead of looking it up.
This commit is contained in:
parent
c0ad4aab51
commit
aad978f5f6
3 changed files with 4 additions and 5 deletions
|
|
@ -264,10 +264,9 @@ public class StateListener : IDisposable
|
|||
}
|
||||
}
|
||||
|
||||
private void OnGearsetDataLoaded(Model model)
|
||||
private void OnGearsetDataLoaded(Actor actor, Model model)
|
||||
{
|
||||
var actor = _penumbra.GameObjectFromDrawObject(model);
|
||||
if (_condition[ConditionFlag.CreatingCharacter] && actor.Index >= ObjectIndex.CutsceneStart)
|
||||
if (!actor.Valid || (_condition[ConditionFlag.CreatingCharacter] && actor.Index >= ObjectIndex.CutsceneStart))
|
||||
return;
|
||||
|
||||
// ensure actor and state are valid.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue