From 4c919a152c1b9af78ac0cd676f3f45b8e44ba607 Mon Sep 17 00:00:00 2001 From: That_One_Nerd Date: Sat, 1 Apr 2023 15:05:58 -0400 Subject: [PATCH] Fixed issue #28. Literally a one-liner. --- SrcMod/Shell/Modules/BaseModule.cs | 2 +- SrcMod/Shell/Shell.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SrcMod/Shell/Modules/BaseModule.cs b/SrcMod/Shell/Modules/BaseModule.cs index 9e18192..653dfbb 100644 --- a/SrcMod/Shell/Modules/BaseModule.cs +++ b/SrcMod/Shell/Modules/BaseModule.cs @@ -194,7 +194,7 @@ public static class BaseModule { List lines = new() { " Timestamp Description"}; int longestName = 0; - for (int i = lines.Count - 1; i >= 0; i--) + for (int i = Program.Shell!.History.Count - 1; i >= 0; i--) { HistoryItem hist = Program.Shell!.History[i]; if (hist.name.Length > longestName) longestName = hist.name.Length; diff --git a/SrcMod/Shell/Shell.cs b/SrcMod/Shell/Shell.cs index a2b7cda..3a90b88 100644 --- a/SrcMod/Shell/Shell.cs +++ b/SrcMod/Shell/Shell.cs @@ -6,7 +6,7 @@ public class Shell { public const string Author = "That_One_Nerd"; public const string Name = "SrcMod"; - public const string Version = "Alpha 0.3.1"; + public const string Version = "Alpha 0.3.2"; public readonly string? ShellDirectory;