diff options
author | Paul Gilbert | 2017-12-03 21:58:36 -0500 |
---|---|---|
committer | Paul Gilbert | 2017-12-03 21:58:36 -0500 |
commit | 341c6a95e3e86a83d7e5e569420064bd231e2ae0 (patch) | |
tree | 0de16af1da30e76b96e925a0742a816061ed0fdc /engines/xeen | |
parent | 9ba9265583beb24ce4a845541a4cec6529c27a25 (diff) | |
download | scummvm-rg350-341c6a95e3e86a83d7e5e569420064bd231e2ae0.tar.gz scummvm-rg350-341c6a95e3e86a83d7e5e569420064bd231e2ae0.tar.bz2 scummvm-rg350-341c6a95e3e86a83d7e5e569420064bd231e2ae0.zip |
XEEN: Fix Coverity warnings
Diffstat (limited to 'engines/xeen')
-rw-r--r-- | engines/xeen/font.cpp | 5 | ||||
-rw-r--r-- | engines/xeen/town.cpp | 4 |
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; |