Set offline player name to "Player" to prevent a crash on world loading in an offline session
This commit is contained in:
parent
24f6f3059b
commit
50035e9aa1
@ -486,7 +486,7 @@ void MainWindow::doLogin(const QString &errorMsg)
|
|||||||
QString user = loginDlg->getUsername();
|
QString user = loginDlg->getUsername();
|
||||||
if (user.length() == 0)
|
if (user.length() == 0)
|
||||||
user = QString("Offline");
|
user = QString("Offline");
|
||||||
m_activeLogin = {user, QString("Offline"), QString(), QString()};
|
m_activeLogin = {user, QString("Offline"), QString("Player"), QString()};
|
||||||
m_activeInst = m_selectedInstance;
|
m_activeInst = m_selectedInstance;
|
||||||
launchInstance(m_activeInst, m_activeLogin);
|
launchInstance(m_activeInst, m_activeLogin);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user