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:
parent
d9582492a3
commit
c93b6c8952
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user