QTfrontend/game.cpp
changeset 5201 7b9aa7aac336
parent 5140 932307228d05
child 5213 a86768368309
--- a/QTfrontend/game.cpp	Tue May 03 23:16:47 2011 +0200
+++ b/QTfrontend/game.cpp	Wed May 04 01:19:39 2011 +0200
@@ -19,6 +19,7 @@
 #include <QString>
 #include <QByteArray>
 #include <QUuid>
+#include <QColor>
 
 #include "game.h"
 #include "hwconsts.h"
@@ -117,7 +118,7 @@
     HWTeam * team1;
     team1 = new HWTeam;
     team1->difficulty = 0;
-    team1->teamColor = *colors[0];
+    team1->teamColor = QColor(colors[0]);
     team1->numHedgehogs = 4;
     namegen.TeamRandomNames(team1,TRUE);
     HWProto::addStringListToBuffer(teamscfg,
@@ -126,7 +127,7 @@
     HWTeam * team2;
     team2 = new HWTeam;
     team2->difficulty = 4;
-    team2->teamColor = *colors[1];
+    team2->teamColor = QColor(colors[1]);
     team2->numHedgehogs = 4;
 	do
         namegen.TeamRandomNames(team2,TRUE);