From a1795c2db29e47aa180ca963eb01c259c08b4af5 Mon Sep 17 00:00:00 2001 From: Victor Tran Date: Sat, 11 May 2024 15:09:40 +1000 Subject: [PATCH] Fix stek overflow --- DiscordMonies/Board/Board.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DiscordMonies/Board/Board.cs b/DiscordMonies/Board/Board.cs index b799029..f3f2cc7 100644 --- a/DiscordMonies/Board/Board.cs +++ b/DiscordMonies/Board/Board.cs @@ -53,7 +53,7 @@ public class Space : IOwnable public string PositionString => Index % 10 == 0 ? string.Empty : $" ({PositionCode})"; public string NameWithPositionString => - ToString() + (string.IsNullOrEmpty(PositionString) ? string.Empty : PositionString); + Info.Name + (string.IsNullOrEmpty(PositionString) ? string.Empty : PositionString); public override string ToString() => NameWithPositionString;