1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-12-25 19:46:50 -05:00

Fix issue with typing char name with no hero selected (#24)

This commit is contained in:
Mike Bundy 2018-11-27 00:12:36 +00:00 committed by Tim Sarbin
parent d9582492a3
commit c93b6c8952

View File

@ -336,7 +336,7 @@ namespace OpenDiablo2.Scenes
return;
}
if (characterNameTextBox.Text.Length >= 15)
if (characterNameTextBox.Text.Length >= 15 || !selectedHero.HasValue)
return;
if (!"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".Contains(charcode))