diff --git a/src/states_screens/networking_lobby.cpp b/src/states_screens/networking_lobby.cpp index 5fcceb092..8657b6e61 100644 --- a/src/states_screens/networking_lobby.cpp +++ b/src/states_screens/networking_lobby.cpp @@ -107,7 +107,7 @@ void NetworkingLobby::eventCallback(Widget* widget, const std::string& name, con RibbonWidget* ribbon = dynamic_cast(widget); if (ribbon == NULL) return; - std::string selection = ribbon->getSelectionIDString(PLAYER_ID_GAME_MASTER); + const std::string &selection = ribbon->getSelectionIDString(PLAYER_ID_GAME_MASTER); if (selection == m_exit_widget->m_properties[PROP_ID]) {