总体评价: 5 星
无法编辑Lipotty的部队大修
上下文
ScreenManager.Tick
消息
Index was outside the bounds of the array.
完整类型
System.IndexOutOfRangeException
描述
游戏试图读取列表之外的数据(比如列表只有5个,却要读第6个)。
at TaleWorlds.CampaignSystem.Roster.TroopRoster.AddToCountsAtIndex(Int32 index, Int32 countChange, Int32 woundedCountChange, Int32 xpChange, Boolean removeDepleted)
at TaleWorlds.CampaignSystem.Roster.TroopRoster.RemoveTroop(CharacterObject troop, Int32 numberToRemove, UniqueTroopDescriptor troopSeed, Int32 xp)
at TroopDesigner.Utils.EquipmentEdit.CleanupHeroes(CharacterObject troopCharacterObject) in E:\\code\\mod\\TroopDesigner\\TroopDesigner\\Utils\\EquipmentEdit.cs:line 361
at TroopDesigner.Utils.EquipmentEdit.OnTradeCompleted(CharacterObject troopCharacterObject, ItemRoster backupPlayerItemRoster, Dictionary`2 originalItemTypes, Int32 targetIndex) in E:\\code\\mod\\TroopDesigner\\TroopDesigner\\Utils\\EquipmentEdit.cs:line 343
at TroopDesigner.Utils.EquipmentEdit.c__DisplayClass10_0.b__0() in E:\\code\\mod\\TroopDesigner\\TroopDesigner\\Utils\\EquipmentEdit.cs:line 277
at Helpers.InventoryScreenHelper.CloseInventoryPresentation_Patch1(Boolean fromCancel)
at TaleWorlds.CampaignSystem.ViewModelCollection.Inventory.SPInventoryVM.ExecuteResetAndCompleteTranstactions()
at SandBox.GauntletUI.GauntletInventoryScreen.OnFrameTick(Single dt)
at TaleWorlds.ScreenSystem.ScreenBase.FrameTick(Single dt)
at TaleWorlds.ScreenSystem.ScreenManager.Tick_Patch2(Single dt)
