X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=bs%2Fbsconf.cpp;h=478b8d456bb64621effb19fe78ae09fbd235bb91;hb=1cdb85f96705026bbeb6772d7bed34a4825353af;hp=874d6b9e38d1f20ccf483af79696871797c77af4;hpb=5940cfda3be2c7b4ecbd64c814948b29139177c0;p=hbs.git diff --git a/bs/bsconf.cpp b/bs/bsconf.cpp index 874d6b9..478b8d4 100644 --- a/bs/bsconf.cpp +++ b/bs/bsconf.cpp @@ -106,8 +106,13 @@ bool BSConf::loadStats() units[race].setArmor(temp.toInt()); t1 >> temp; units[race].setEMP(temp.toInt()); - t1 >> temp; - units[race].setTotalResources(temp.toInt()); + QString metal; + QString crystal; + QString eonium; + t1 >> metal; + t1 >> crystal; + t1 >> eonium; + units[race].setTotalResources(metal.toInt() + crystal.toInt() + eonium.toInt()); t1 >> temp; units[race].setFuel(temp.toInt()); t1 >> temp;