Merge pull request #127 from RogueAI42/master

fix a small bad in ShiftoriumFrontend
This commit is contained in:
Michael VanOverbeek 2017-06-10 08:30:08 -04:00 committed by GitHub
commit 7dd109719b

View file

@ -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<string, ShiftoriumUpgrade>[cats.Length];
int numComplete = 0;
avail = backend.GetAvailable();