mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 10:17:22 +01:00
Fix invalid state after mod deletion.
This commit is contained in:
parent
46bf3d7391
commit
777c0cc69e
1 changed files with 1 additions and 1 deletions
|
|
@ -116,7 +116,7 @@ public sealed class ModManager : ModStorage
|
|||
}
|
||||
|
||||
_communicator.ModPathChanged.Invoke(ModPathChangeType.Deleted, mod, mod.ModPath, null);
|
||||
foreach (var remainingMod in Mods.Skip(mod.Index))
|
||||
foreach (var remainingMod in Mods.Skip(mod.Index + 1))
|
||||
--remainingMod.Index;
|
||||
Mods.RemoveAt(mod.Index);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue