Skip to content

Commit

Permalink
fixed boolean expression
Browse files Browse the repository at this point in the history
  • Loading branch information
msarilar committed Nov 5, 2016
1 parent dbaa2bf commit 1d2acb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EDEngineer/Models/State.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, Entry>(name, new Entry(entryDatas.First(e => e.Name == name))));
}
Expand Down

0 comments on commit 1d2acb3

Please sign in to comment.