QTfrontend/ui/widget/teamselect.cpp
changeset 14529 db646b3c0b95
parent 13689 27e5e311c7a3
--- a/QTfrontend/ui/widget/teamselect.cpp	Tue Jan 08 03:03:21 2019 +0100
+++ b/QTfrontend/ui/widget/teamselect.cpp	Wed Jan 09 19:10:11 2019 +0100
@@ -215,8 +215,9 @@
         // dont playing team => playing
         itDontPlay->setColor(framePlaying->getNextColor());
         team=*itDontPlay; // for net team info saving in framePlaying (we have only name with netID from network)
-        curPlayingTeams.push_back(*itDontPlay);
-        if(!m_acceptOuter) emit teamWillPlay(*itDontPlay);
+        team.setOwner(m_curUser);
+        curPlayingTeams.push_back(team);
+        if(!m_acceptOuter) emit teamWillPlay(team);
         m_curNotPlayingTeams.erase(itDontPlay);
 
         // Hide team notice if at least two teams.