diff options
author | Eugene Sandulenko | 2016-02-14 17:33:52 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2016-02-14 17:33:52 +0100 |
commit | effd02bdc13739c0c4cadf272469fb545198b573 (patch) | |
tree | 6af917d0a015a4621a70d0c3f7f0911c6f64f1e6 /engines/wage | |
parent | bd01771720f2574984dcb2f9e546fb1dc04500da (diff) | |
download | scummvm-rg350-effd02bdc13739c0c4cadf272469fb545198b573.tar.gz scummvm-rg350-effd02bdc13739c0c4cadf272469fb545198b573.tar.bz2 scummvm-rg350-effd02bdc13739c0c4cadf272469fb545198b573.zip |
WAGE: Fix uninit members
Diffstat (limited to 'engines/wage')
-rw-r--r-- | engines/wage/design.cpp | 4 | ||||
-rw-r--r-- | engines/wage/gui.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/wage/design.cpp b/engines/wage/design.cpp index 44891f1637..247d98970e 100644 --- a/engines/wage/design.cpp +++ b/engines/wage/design.cpp @@ -381,7 +381,7 @@ void Design::drawBitmap(Graphics::Surface *surface, Common::SeekableReadStream & while (numBytes > 0 && y < h) { int n = in.readSByte(); int count; - int b; + int b = 0; int state = 0; numBytes--; @@ -399,7 +399,7 @@ void Design::drawBitmap(Graphics::Surface *surface, Common::SeekableReadStream & } for (int i = 0; i < count && y < h; i++) { - byte color; + byte color = 0; if (state == 1) { color = in.readByte(); numBytes--; diff --git a/engines/wage/gui.cpp b/engines/wage/gui.cpp index f7196abf17..a2931f9abc 100644 --- a/engines/wage/gui.cpp +++ b/engines/wage/gui.cpp @@ -199,7 +199,7 @@ void Gui::undrawCursor() { } const Graphics::Font *Gui::getFont(const char *name, Graphics::FontManager::FontUsage fallback) { - const Graphics::Font *font; + const Graphics::Font *font = 0; if (!_builtInFonts) { font = FontMan.getFontByName(name); |