From 50035e9aa1b4f04c91cce3830effbc11c0eec269 Mon Sep 17 00:00:00 2001 From: Sky Date: Mon, 7 Oct 2013 22:42:14 +0100 Subject: [PATCH] Set offline player name to "Player" to prevent a crash on world loading in an offline session --- gui/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index da7677095..3ba6e52bc 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -486,7 +486,7 @@ void MainWindow::doLogin(const QString &errorMsg) QString user = loginDlg->getUsername(); if (user.length() == 0) user = QString("Offline"); - m_activeLogin = {user, QString("Offline"), QString(), QString()}; + m_activeLogin = {user, QString("Offline"), QString("Player"), QString()}; m_activeInst = m_selectedInstance; launchInstance(m_activeInst, m_activeLogin); }