diff --git a/EDEngineer/Models/State.cs b/EDEngineer/Models/State.cs index 5efdbdb8..2fce019c 100644 --- a/EDEngineer/Models/State.cs +++ b/EDEngineer/Models/State.cs @@ -39,7 +39,7 @@ public void IncrementCargo(string name, int change) { lock (stateLock) { - if (Cargo.ContainsKey(name)) + if (!Cargo.ContainsKey(name)) { Cargo.Add(new KeyValuePair(name, new Entry(entryDatas.First(e => e.Name == name)))); }