QTfrontend/team.cpp
changeset 3359 d17b9f6adae5
parent 3344 b18a166e6ca4
child 3381 f8800c44b3de
--- a/QTfrontend/team.cpp	Mon Apr 19 12:47:36 2010 +0000
+++ b/QTfrontend/team.cpp	Mon Apr 19 13:31:08 2010 +0000
@@ -121,7 +121,7 @@
         Hedgehogs[i].Suicides = teamfile.value(hh + "Suicides", 0).toInt();
     }
     for(int i = 0; i < BINDS_NUMBER; i++)
-        binds[i].action = teamfile.value(QString("Binds/%1").arg(binds[i].strbind), cbinds[i].action).toString();
+        binds[i].strbind = teamfile.value(QString("Binds/%1").arg(binds[i].action), cbinds[i].strbind).toString();
     for(int i = 0; i < MAX_ACHIEVEMENTS; i++)
         if(achievements[i][0][0])
             AchievementProgress[i] = teamfile.value(QString("Achievements/%1").arg(achievements[i][0]), 0).toUInt();
@@ -166,7 +166,7 @@
         teamfile.setValue(hh + "Suicides", Hedgehogs[i].Suicides);
     }
     for(int i = 0; i < BINDS_NUMBER; i++)
-        teamfile.setValue(QString("Binds/%1").arg(binds[i].strbind), binds[i].action);
+        teamfile.setValue(QString("Binds/%1").arg(binds[i].action), binds[i].strbind);
     for(int i = 0; i < MAX_ACHIEVEMENTS; i++)
         if(achievements[i][0][0])
             teamfile.setValue(QString("Achievements/%1").arg(achievements[i][0]), AchievementProgress[i]);