aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Commands.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS.WinForms/Commands.cs')
-rw-r--r--ShiftOS.WinForms/Commands.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/ShiftOS.WinForms/Commands.cs b/ShiftOS.WinForms/Commands.cs
index c9e9376..ad1abe4 100644
--- a/ShiftOS.WinForms/Commands.cs
+++ b/ShiftOS.WinForms/Commands.cs
@@ -248,9 +248,7 @@ namespace ShiftOS.Engine
var upg = Shiftorium.GetAvailable().FirstOrDefault(x => x.ID == upgrade);
if(upg != null)
{
- if (Shiftorium.Buy(upg.ID, upg.Cost) == true)
- Console.WriteLine("{RES_UPGRADEINSTALLED}");
- else
+ if (!Shiftorium.Buy(upg.ID, upg.Cost) == true)
Console.WriteLine("{ERR_NOTENOUGHCODEPOINTS}");
}
else