QTfrontend/team.cpp
changeset 97 e7c1df9cce2c
parent 88 6740a1c4edc9
child 116 00d3d6d2e699
--- a/QTfrontend/team.cpp	Sun Aug 06 15:47:20 2006 +0000
+++ b/QTfrontend/team.cpp	Sun Aug 06 15:48:48 2006 +0000
@@ -39,6 +39,7 @@
 #include "gameuiconfig.h"
 #include "predefteams.h"
 #include "pages.h"
+#include "hwconsts.h"
 
 HWTeam::HWTeam(const QString & teamname, GameUIConfig * config)
 {
@@ -79,7 +80,7 @@
 
 bool HWTeam::LoadFromFile()
 {
-	QFile cfgfile(config->cfgdir.absolutePath() + "/" + TeamName + ".cfg");
+	QFile cfgfile(cfgdir->absolutePath() + "/" + TeamName + ".cfg");
 	if (!cfgfile.open(QIODevice::ReadOnly)) return false;
 	QTextStream stream(&cfgfile);
 	stream.setCodec("UTF-8");
@@ -133,7 +134,7 @@
 
 bool HWTeam::SaveToFile()
 {
-	QFile cfgfile(config->cfgdir.absolutePath() + "/" + TeamName + ".cfg");
+	QFile cfgfile(cfgdir->absolutePath() + "/" + TeamName + ".cfg");
 	if (!cfgfile.open(QIODevice::WriteOnly)) return false;
 	QTextStream stream(&cfgfile);
 	stream.setCodec("UTF-8");