Permalink
Browse files

XEEN: Fix Coverity warnings

  • Loading branch information...
dreammaster committed Dec 4, 2017
1 parent 9ba9265 commit 341c6a95e3e86a83d7e5e569420064bd231e2ae0
Showing with 5 additions and 4 deletions.
  1. +3 −2 engines/xeen/font.cpp
  2. +2 −2 engines/xeen/town.cpp
View
@@ -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);
}
View
@@ -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;

0 comments on commit 341c6a9

Please sign in to comment.