- fixed: The player menu was not able to set the new name because the security check did not account for the text enter menu being present.

This commit is contained in:
Christoph Oelckers 2017-03-29 20:11:58 +02:00
parent 9d1031f0ba
commit 356144a537

View file

@ -91,7 +91,7 @@ DEFINE_ACTION_FUNCTION(DPlayerMenu, PlayerNameChanged)
const char *pp = s;
FString command("name \"");
if (self == CurrentMenu)
if (self == CurrentMenu || self == CurrentMenu->mParentMenu)
{
// Escape any backslashes or quotation marks before sending the name to the console.
for (auto p = pp; *p != '\0'; ++p)