From a43b53112dc0a4a23cadb439087b3bedce55fd45 Mon Sep 17 00:00:00 2001 From: teascade Date: Sat, 13 May 2017 23:21:29 +0300 Subject: [PATCH] Fixed a bug in DriveInterface causing an exception --- Assets/Scripts/Items/DriveInterface.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/Items/DriveInterface.cs b/Assets/Scripts/Items/DriveInterface.cs index cac9446..c481b31 100644 --- a/Assets/Scripts/Items/DriveInterface.cs +++ b/Assets/Scripts/Items/DriveInterface.cs @@ -1,4 +1,6 @@  +using UnityEngine; + namespace Cyber.Items { /// @@ -55,7 +57,7 @@ namespace Cyber.Items { /// /// public int GetHeight() { - return ItemGrid.GetLength(1); + return ItemGrid.GetLength(0); } ///