mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Ensure that items are added with mappings in IDDB
This commit is contained in:
@@ -100,9 +100,10 @@ namespace SabreTools.DatFiles
|
||||
/// <summary>
|
||||
/// Add an item, returning the insert index
|
||||
/// </summary>
|
||||
public long AddItem(DatItem item)
|
||||
public long AddItem(DatItem item, long machineIndex)
|
||||
{
|
||||
_items[_itemIndex++] = item;
|
||||
_itemToMachineMapping[_itemIndex - 1] = machineIndex;
|
||||
DatStatistics.AddItemStatistics(item);
|
||||
return _itemIndex - 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user