summaryrefslogtreecommitdiff
path: root/src/gui/windows/worldselectdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/worldselectdialog.cpp')
-rw-r--r--src/gui/windows/worldselectdialog.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/windows/worldselectdialog.cpp b/src/gui/windows/worldselectdialog.cpp
index 5cd0a3b2f..4a70e3750 100644
--- a/src/gui/windows/worldselectdialog.cpp
+++ b/src/gui/windows/worldselectdialog.cpp
@@ -106,7 +106,8 @@ void WorldSelectDialog::action(const ActionEvent &event)
{
mChangeLoginButton->setEnabled(false);
mChooseWorld->setEnabled(false);
- Net::getLoginHandler()->chooseServer(mWorldList->getSelected());
+ Net::getLoginHandler()->chooseServer(mWorldList->getSelected(),
+ client->getPersistentIp());
// Check in case netcode moves us forward
if (client->getState() == STATE_WORLD_SELECT)