Set offline player name to "Player" to prevent a crash on world loading in an offline session

This commit is contained in:
Sky 2013-10-07 22:42:14 +01:00
parent 24f6f3059b
commit 50035e9aa1

View File

@ -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);
}