summaryrefslogtreecommitdiff
path: root/src/gui/windows/buydialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/buydialog.cpp')
-rw-r--r--src/gui/windows/buydialog.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/windows/buydialog.cpp b/src/gui/windows/buydialog.cpp
index d2c4e3a6a..c5fdac885 100644
--- a/src/gui/windows/buydialog.cpp
+++ b/src/gui/windows/buydialog.cpp
@@ -24,7 +24,6 @@
#include "actormanager.h"
#include "configuration.h"
-#include "units.h"
#include "being/being.h"
@@ -57,6 +56,8 @@
#include "resources/iteminfo.h"
+#include "resources/db/unitsdb.h"
+
#include "utils/delete2.h"
#include <algorithm>
@@ -738,8 +739,8 @@ void BuyDialog::updateButtonsAndLabels()
mQuantityLabel->setCaption(strprintf("%d / %d", mAmountItems, mMaxItems));
// TRANSLATORS: buy dialog label
mMoneyLabel->setCaption(strprintf(_("Price: %s / Total: %s"),
- Units::formatCurrency(price).c_str(),
- Units::formatCurrency(mMoney - price).c_str()));
+ UnitsDb::formatCurrency(price).c_str(),
+ UnitsDb::formatCurrency(mMoney - price).c_str()));
}
void BuyDialog::setVisible(Visible visible)