From e5bd035b4c520a2c8d9f398bb1efe72ebc1ccf80 Mon Sep 17 00:00:00 2001 From: RogueAI42 Date: Sat, 10 Jun 2017 02:50:15 +1000 Subject: [PATCH] fix a small bad in ShiftoriumFrontend --- ShiftOS.WinForms/Applications/ShiftoriumFrontend.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ShiftOS.WinForms/Applications/ShiftoriumFrontend.cs b/ShiftOS.WinForms/Applications/ShiftoriumFrontend.cs index 0ae0803..5dfb98e 100644 --- a/ShiftOS.WinForms/Applications/ShiftoriumFrontend.cs +++ b/ShiftOS.WinForms/Applications/ShiftoriumFrontend.cs @@ -47,7 +47,7 @@ namespace ShiftOS.WinForms.Applications public partial class ShiftoriumFrontend : UserControl, IShiftOSWindow { public int CategoryId = 0; - private string[] cats = backend.GetCategories(); + private string[] cats; private ShiftoriumUpgrade[] avail; @@ -94,6 +94,7 @@ namespace ShiftOS.WinForms.Applications private void Populate() { + cats = Shiftorium.GetCategories(); upgrades = new Dictionary[cats.Length]; int numComplete = 0; avail = backend.GetAvailable();