Skip to content

Commit

Permalink
XEEN: Fix Coverity warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Dec 4, 2017
1 parent 9ba9265 commit 341c6a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions engines/xeen/font.cpp
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions engines/xeen/town.cpp
Expand Up @@ -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;

Expand Down

0 comments on commit 341c6a9

Please sign in to comment.