QTfrontend/team.cpp
changeset 247 07605d2a2024
parent 245 4f6b53b7a567
child 312 c36d0b34ac3d
--- a/QTfrontend/team.cpp	Fri Nov 17 13:36:58 2006 +0000
+++ b/QTfrontend/team.cpp	Sat Nov 18 14:47:50 2006 +0000
@@ -182,7 +182,7 @@
 
 	Grave = hwform->ui.pageEditTeam->CBGrave->currentText();
 	Fort = hwform->ui.pageEditTeam->CBFort->currentText();
-	for(int i = 0; i < 8; i++)
+	for(int i = 0; i < BINDS_NUMBER; i++)
 	{
 		binds[i].strbind = hwform->ui.pageEditTeam->CBBind[i]->currentText();
 	}
@@ -194,7 +194,7 @@
 	sl.push_back("eaddteam");
 	sl.push_back(QString("ecolor %1").arg(color));
 	sl.push_back("ename team " + TeamName);
-	for (int i = 0; i < 8; i++)
+	for (int i = 0; i < hedgehogs; i++)
 		sl.push_back(QString("ename hh%1 ").arg(i).append(HHName[i]));
 	sl.push_back(QString("egrave " + Grave));
 	sl.push_back(QString("efort " + Fort));