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();
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user