X-Git-Url: https://ruin.nu/git/?p=hbs.git;a=blobdiff_plain;f=bs%2Fbsconf.cpp;h=478b8d456bb64621effb19fe78ae09fbd235bb91;hp=874d6b9e38d1f20ccf483af79696871797c77af4;hb=2fd4fff0f5eef1d64527b202924f16f2242691dc;hpb=e5701c8f3f1199264015c5d6e0f2a32515d5f6f8 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;