summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-02-01 00:43:24 +0300
committerAndrei Karas <akaras@inbox.ru>2017-02-01 00:45:05 +0300
commit2c273a20b2cd3e1628840f2d87df16f0cce9ad33 (patch)
tree853d172e0fd05117d84eda712912ba2843bb87e2 /src/resources
parent35481061f62111f916a39ce3cac6a314579418f9 (diff)
downloadplus-2c273a20b2cd3e1628840f2d87df16f0cce9ad33.tar.gz
plus-2c273a20b2cd3e1628840f2d87df16f0cce9ad33.tar.bz2
plus-2c273a20b2cd3e1628840f2d87df16f0cce9ad33.tar.xz
plus-2c273a20b2cd3e1628840f2d87df16f0cce9ad33.zip
Set currency to buy dialog based on selected npc type id.
For now this type never set.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/db/unitsdb.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/resources/db/unitsdb.cpp b/src/resources/db/unitsdb.cpp
index 94d055ffd..7b56e8721 100644
--- a/src/resources/db/unitsdb.cpp
+++ b/src/resources/db/unitsdb.cpp
@@ -25,6 +25,8 @@
#include "configuration.h"
#include "logger.h"
+#include "const/resources/currency.h"
+
#include "utils/checkutils.h"
#include "resources/beingcommon.h"
@@ -181,7 +183,7 @@ static void loadCurrencies(XmlNodePtr parentNode)
continue;
}
mCurrencies[name] = loadUnit(node);
- if (name == "default")
+ if (name == DEFAULT_CURRENCY)
defaultCurrency = mCurrencies[name];
}
}
@@ -220,7 +222,7 @@ void UnitsDb::loadXmlFile(const std::string &fileName,
else if (type == "currency")
{
defaultCurrency = ud;
- mCurrencies["default"] = ud;
+ mCurrencies[DEFAULT_CURRENCY] = ud;
}
else
{