Fixes crash when joining multiplayer lobby

Fixes crash when joining a multiplayer lobby caused by recent spawn
choice changes.
This commit is contained in:
Squiggles211
2014-05-17 23:36:25 -05:00
parent 3beabfd205
commit 5a60dc6a56
4 changed files with 16 additions and 1 deletions

View File

@@ -422,7 +422,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
public static void SetupSpawnWidget(Widget parent, Session.Slot s, Session.Client c)
{
parent.Get<LabelWidget>("SPAWN").GetText = () => (c.SpawnPoint == 0) ? "-" : c.SpawnPoint.ToString();
parent.Get<LabelWidget>("SPAWN").GetText = () => (c.SpawnPoint == 0) ? "-" : Convert.ToChar('A' - 1 + c.SpawnPoint).ToString();
}
public static void SetupEditableReadyWidget(Widget parent, Session.Slot s, Session.Client c, OrderManager orderManager, MapPreview map)