aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/dialogs_spells.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-02-28 18:50:18 -0500
committerPaul Gilbert2015-02-28 18:50:18 -0500
commit810619072a7760339379ca3802d956c976fc22dd (patch)
tree682644180798a4734a58b99b72a9ebb241c2d4d8 /engines/xeen/dialogs_spells.cpp
parent93cc299eafab9e385af9b812f45809cc4645a14e (diff)
downloadscummvm-rg350-810619072a7760339379ca3802d956c976fc22dd.tar.gz
scummvm-rg350-810619072a7760339379ca3802d956c976fc22dd.tar.bz2
scummvm-rg350-810619072a7760339379ca3802d956c976fc22dd.zip
XEEN: gcc compilation fixes
Diffstat (limited to 'engines/xeen/dialogs_spells.cpp')
-rw-r--r--engines/xeen/dialogs_spells.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/xeen/dialogs_spells.cpp b/engines/xeen/dialogs_spells.cpp
index 08828a0c8d..70668e2ea5 100644
--- a/engines/xeen/dialogs_spells.cpp
+++ b/engines/xeen/dialogs_spells.cpp
@@ -67,7 +67,7 @@ Character *SpellsDialog::execute(ButtonContainer *priorDialog, Character *c, int
Common::String title = Common::String::format(BUY_SPELLS, c->_name.c_str());
Common::String msg = Common::String::format(GUILD_OPTIONS,
- title.c_str(), XeenEngine::printMil(party._gold));
+ title.c_str(), XeenEngine::printMil(party._gold).c_str());
screen._windows[10].writeString(msg);
warning("TODO: Sprite draw using previously used button sprites");
@@ -353,7 +353,7 @@ const char *SpellsDialog::setSpellText(Character *c, int isCasting) {
if (!c->_spells[idx] || (isCasting & 0x80)) {
int cost = spells.calcSpellCost(SPELLS_ALLOWED[category][idx], expenseFactor);
_spells.push_back(SpellEntry(Common::String::format("\x3l%s\x3r\x9""000%u",
- spells._spellNames[SPELLS_ALLOWED[category][idx]], cost),
+ spells._spellNames[SPELLS_ALLOWED[category][idx]].c_str(), cost),
idx, spellId));
}
}
@@ -370,7 +370,7 @@ const char *SpellsDialog::setSpellText(Character *c, int isCasting) {
if (!c->_spells[idx] || (isCasting & 0x80)) {
int cost = spells.calcSpellCost(SPELLS_ALLOWED[category][idx], expenseFactor);
_spells.push_back(SpellEntry(Common::String::format("\x3l%s\x3r\x9""000%u",
- spells._spellNames[SPELLS_ALLOWED[category][idx]], cost),
+ spells._spellNames[SPELLS_ALLOWED[category][idx]].c_str(), cost),
idx, spellId));
}
}
@@ -385,7 +385,7 @@ const char *SpellsDialog::setSpellText(Character *c, int isCasting) {
if (!c->_spells[idx] || (isCasting & 0x80)) {
int cost = spells.calcSpellCost(SPELLS_ALLOWED[category][idx], expenseFactor);
_spells.push_back(SpellEntry(Common::String::format("\x3l%s\x3r\x9""000%u",
- spells._spellNames[SPELLS_ALLOWED[category][idx]], cost),
+ spells._spellNames[SPELLS_ALLOWED[category][idx]].c_str(), cost),
idx, spellId));
}
}