diff --git a/src/multimenu.cpp b/src/multimenu.cpp index cd690337b86..07f6443f728 100644 --- a/src/multimenu.cpp +++ b/src/multimenu.cpp @@ -484,7 +484,7 @@ void addMultiRequest(const char *searchDir, const char *fileExtension, UDWORD mo searchBox->setString(WzString::fromUtf8(current_searchString)); searchBox->setOnEditingStoppedHandler([searchDir, fileExtension, mode, numPlayers](W_EDITBOX& widg) { - const std::string &value = widg.getString().toUtf8(); + std::string value = widg.getString().toUtf8(); if (value == current_searchString) { return; }