From 8656337c5dc64bea29f330a51b362f0a6b85ef78 Mon Sep 17 00:00:00 2001 From: lempamo Date: Tue, 28 Feb 2017 12:11:40 -0500 Subject: [PATCH] fixed snakey crashing bug --- ShiftOS.WinForms/Applications/ShiftSweeper.cs | 1 - ShiftOS.WinForms/Applications/Snakey.cs | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/ShiftOS.WinForms/Applications/ShiftSweeper.cs b/ShiftOS.WinForms/Applications/ShiftSweeper.cs index 0b05bdf..aaeed3f 100644 --- a/ShiftOS.WinForms/Applications/ShiftSweeper.cs +++ b/ShiftOS.WinForms/Applications/ShiftSweeper.cs @@ -134,7 +134,6 @@ namespace ShiftOS.WinForms.Applications buttonE.Enabled = false; buttonM.Enabled = false; buttonH.Enabled = false; - gameplayed = true; makegrid(); } diff --git a/ShiftOS.WinForms/Applications/Snakey.cs b/ShiftOS.WinForms/Applications/Snakey.cs index c6f61e9..f210c9c 100644 --- a/ShiftOS.WinForms/Applications/Snakey.cs +++ b/ShiftOS.WinForms/Applications/Snakey.cs @@ -155,6 +155,7 @@ namespace ShiftOS.WinForms.Applications clearGame(); makeGrid(); } + snakemap = new int[10, 10]; snakemap[5, 5] = 2; tableLayoutPanel1.GetControlFromPosition(5, 5).BackgroundImage = Properties.Resources.SnakeyHeadL; for (int x = 6; x < 8; x++)