summaryrefslogtreecommitdiff
path: root/src/gui/worldselectdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/worldselectdialog.cpp')
-rw-r--r--src/gui/worldselectdialog.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/worldselectdialog.cpp b/src/gui/worldselectdialog.cpp
index 93314ff16..b62311555 100644
--- a/src/gui/worldselectdialog.cpp
+++ b/src/gui/worldselectdialog.cpp
@@ -68,9 +68,14 @@ class WorldListModel final : public gcn::ListModel
{
const WorldInfo *const si = mWorlds[i];
if (si)
- return si->name + " (" + toString(si->online_users) + ")";
+ {
+ return std::string(si->name).append(" (").append(
+ toString(si->online_users)).append(")");
+ }
else
+ {
return "???";
+ }
}
private:
Worlds mWorlds;