Code Select
Keys count does not match the values count while loading a dictionary (maybe keys and values were resolved during different passes?). Some elements will be skipped. keys=5, values=0, label=resourcePool
That is how it is in the save file
Code Select
<keys>
<li>Faction_4</li>
<li>Faction_5</li>
<li>Faction_6</li>
<li>Faction_7</li>
<li>Faction_8</li>
</keys>
<values>
<li>5800</li>
<li>6300</li>
<li>4100</li>
<li>4000</li>
<li>6900</li>
</values>
The code in the World Comp's exposedata:
Code Select
List<Faction> factions= new List<Faction>();
List<int> ints = new List<int>();
Scribe_Collections.Look(ref resourcePool, "resourcePool", LookMode.Reference, LookMode.Value, ref factions, ref ints);
The problem is in the LoadSaveMode.ResolvingCrossRefs pass, the Key list's count isn't the same as the values's list.