Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2010-10-09 22:05:46 +0000
committerStijn Buys <ingar@osirion.org>2010-10-09 22:05:46 +0000
commit43927cc52bdd7e44d62b0e6309612558f565b70f (patch)
treea3e9ccf69d6ab03c8444b78ac53d49529a52e675 /src/client/trademenu.cc
parent0ecdd8bc98ba583bbee801b838d785c6f881d7df (diff)
fix crash introduced with inventory transfer, buywindow credits indicator,
removed impulse drive initialization delay.
Diffstat (limited to 'src/client/trademenu.cc')
-rw-r--r--src/client/trademenu.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/trademenu.cc b/src/client/trademenu.cc
index f0030f5..3c0847a 100644
--- a/src/client/trademenu.cc
+++ b/src/client/trademenu.cc
@@ -348,8 +348,12 @@ void TradeMenu::draw()
set_itemtype(menu_itemtype);
}
+
+ std::stringstream creditstr;
+ creditstr << core::localplayer()->credits();
+
std::stringstream str;
- str << "Credits: " << std::setw(12) << core::localplayer()->credits();
+ str << "Credits: " << aux::pad_left(creditstr.str(),12);
if (core::localcontrol() && core::localcontrol()->inventory()) {
core::Inventory *inventory = core::localcontrol()->inventory();