hedgewars/uFLTeams.pas
branchqmlfrontend
changeset 10450 bf9e30b4ef9b
parent 10448 4cb727e029fa
child 10517 844bd43db47a
--- a/hedgewars/uFLTeams.pas	Sat Nov 01 00:23:22 2014 +0300
+++ b/hedgewars/uFLTeams.pas	Sat Nov 01 22:51:07 2014 +0300
@@ -11,7 +11,7 @@
 function teamByName(s: shortstring): PTeam;
 
 implementation
-uses uFLUtils, uFLIPC, uPhysFSLayer;
+uses uFLUtils, uFLIPC, uPhysFSLayer, uFLData;
 
 const MAX_TEAM_NAMES = 128;
 var
@@ -47,7 +47,7 @@
 begin
     with team do
     begin
-        ipcToEngine('eaddteam <hash> ' + color + ' ' + teamName);
+        ipcToEngine('eaddteam <hash> ' + colorsSet[color] + ' ' + teamName);
         for i:= 0 to Pred(hogsNumber) do
         begin
             ipcToEngine('eaddhh ' + inttostr(botLevel) + ' 100 ' + hedgehogs[i].name);