From 87c59212f8590a8dd72fac3e320fcb2ada781355 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 11 May 2014 19:28:57 +0300 Subject: Move player attributes into separate file. --- src/gui/windows/tradewindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gui/windows/tradewindow.cpp') diff --git a/src/gui/windows/tradewindow.cpp b/src/gui/windows/tradewindow.cpp index f05cf1cac..985ebdfad 100644 --- a/src/gui/windows/tradewindow.cpp +++ b/src/gui/windows/tradewindow.cpp @@ -27,6 +27,7 @@ #include "item.h" #include "units.h" +#include "being/attributes.h" #include "being/localplayer.h" #include "being/playerinfo.h" #include "being/playerrelations.h" @@ -379,7 +380,7 @@ void TradeWindow::action(const ActionEvent &event) return; int v = atoi(mMoneyField->getText().c_str()); - const int curMoney = PlayerInfo::getAttribute(PlayerInfo::MONEY); + const int curMoney = PlayerInfo::getAttribute(Attributes::MONEY); if (v > curMoney) { if (localChatTab) -- cgit v1.2.3-70-g09d2