浏览代码

Fix town income on View Towns screen

This is fix issue 1996
ArseniyShestakov 10 年之前
父节点
当前提交
150c8425f5
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      client/windows/CKingdomInterface.cpp

+ 2 - 2
client/windows/CKingdomInterface.cpp

@@ -782,7 +782,7 @@ CTownItem::CTownItem(const CGTownInstance* Town):
 	background =  new CAnimImage("OVSLOT", 6);
 	name = new CLabel(74, 8, FONT_SMALL, TOPLEFT, Colors::WHITE, town->name);
 
-	income = new CLabel( 190, 60, FONT_SMALL, CENTER, Colors::WHITE, boost::lexical_cast<std::string>(town->dailyIncome()));
+	income = new CLabel( 190, 60, FONT_SMALL, CENTER, Colors::WHITE, boost::lexical_cast<std::string>(town->dailyIncome()[Res::GOLD]));
 	hall = new CTownInfo( 69, 31, town, true);
 	fort = new CTownInfo(111, 31, town, false);
 
@@ -813,7 +813,7 @@ void CTownItem::updateGarrisons()
 
 void CTownItem::update()
 {
-	std::string incomeVal = boost::lexical_cast<std::string>(town->dailyIncome());
+	std::string incomeVal = boost::lexical_cast<std::string>(town->dailyIncome()[Res::GOLD]);
 	if (incomeVal != income->text)
 		income->setText(incomeVal);