mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-12 18:27:24 +01:00
Fix thrown exception by stupidity.
This commit is contained in:
parent
62d89633bb
commit
e6bd91319b
1 changed files with 6 additions and 2 deletions
|
|
@ -263,9 +263,13 @@ public sealed class AutoDesignApplier : IDisposable
|
|||
else if (!respectManual)
|
||||
{
|
||||
state.Sources.RemoveFixedDesignSources();
|
||||
foreach(var (key, value) in state.Materials.Values)
|
||||
for (var i = 0; i < state.Materials.Values.Count; ++i)
|
||||
{
|
||||
var (key, value) = state.Materials.Values[i];
|
||||
if (value.Source is StateSource.Fixed)
|
||||
state.Materials.UpdateValue(key, new MaterialValueState(value.Game, value.Model, value.DrawData, StateSource.Manual), out _);
|
||||
state.Materials.UpdateValue(key, new MaterialValueState(value.Game, value.Model, value.DrawData, StateSource.Manual),
|
||||
out _);
|
||||
}
|
||||
}
|
||||
|
||||
if (!_humans.IsHuman((uint)actor.AsCharacter->CharacterData.ModelCharaId))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue