From 356144a537577b788e28c138698cf2b3f86b9cd7 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 29 Mar 2017 20:11:58 +0200 Subject: [PATCH] - 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. --- src/menu/playermenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/menu/playermenu.cpp b/src/menu/playermenu.cpp index c730f2d81..fa5796a45 100644 --- a/src/menu/playermenu.cpp +++ b/src/menu/playermenu.cpp @@ -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)