aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/xeen/font.cpp5
-rw-r--r--engines/xeen/town.cpp4
2 files changed, 5 insertions, 4 deletions
diff --git a/engines/xeen/font.cpp b/engines/xeen/font.cpp
index 2a19a770f9..1d7dab7e21 100644
--- a/engines/xeen/font.cpp
+++ b/engines/xeen/font.cpp
@@ -33,11 +33,12 @@ byte FontData::_bgColor;
bool FontData::_fontReduced;
Justify FontData::_fontJustify;
-FontSurface::FontSurface() : XSurface() {
+FontSurface::FontSurface() : XSurface(), _msgWraps(false), _displayString(nullptr) {
setTextColor(0);
}
-FontSurface::FontSurface(int wv, int hv) : XSurface(wv, hv), _msgWraps(false), _displayString(nullptr) {
+FontSurface::FontSurface(int wv, int hv) : XSurface(wv, hv),
+ _msgWraps(false), _displayString(nullptr) {
create(w, h);
setTextColor(0);
}
diff --git a/engines/xeen/town.cpp b/engines/xeen/town.cpp
index 2a3f58e2e0..1d6a2b4843 100644
--- a/engines/xeen/town.cpp
+++ b/engines/xeen/town.cpp
@@ -529,9 +529,9 @@ Character *Town::doTownOptions(Character *c) {
Character *Town::doBankOptions(Character *c) {
if (_buttonValue == Common::KEYCODE_d)
- _buttonValue = WHERE_PARTY;
+ _buttonValue = (int)WHERE_PARTY;
else if (_buttonValue == Common::KEYCODE_w)
- _buttonValue = WHERE_BANK;
+ _buttonValue = (int)WHERE_BANK;
else
return c;