fix local mention crash

This commit is contained in:
Zach H 2015-07-03 00:28:41 -04:00
parent 14e8fcdd44
commit e2be1cd897
3 changed files with 52 additions and 39 deletions

View file

@ -184,6 +184,7 @@ int TabSupervisor::myAddTab(Tab *tab)
void TabSupervisor::start(const ServerInfo_User &_userInfo)
{
isLocalGame = false;
userInfo = new ServerInfo_User(_userInfo);
tabServer = new TabServer(this, client);
@ -227,6 +228,7 @@ void TabSupervisor::startLocal(const QList<AbstractClient *> &_clients)
tabDeckStorage = 0;
tabReplays = 0;
tabAdmin = 0;
isLocalGame = true;
userInfo = new ServerInfo_User;
localClients = _clients;
for (int i = 0; i < localClients.size(); ++i)