diff options
Diffstat (limited to 'src/gui/models/worldlistmodel.h')
-rw-r--r-- | src/gui/models/worldlistmodel.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/models/worldlistmodel.h b/src/gui/models/worldlistmodel.h index 4fe0a812e..4436f848c 100644 --- a/src/gui/models/worldlistmodel.h +++ b/src/gui/models/worldlistmodel.h @@ -53,7 +53,7 @@ class WorldListModel final : public ListModel std::string getElementAt(int i) override final { const WorldInfo *const si = mWorlds[i]; - if (si) + if (si != nullptr) { return std::string(si->name).append(" (").append( toString(si->online_users)).append(")"); |