diff options
author | Arnaud Boutonné | 2011-02-05 14:07:30 +0000 |
---|---|---|
committer | Arnaud Boutonné | 2011-02-05 14:07:30 +0000 |
commit | bc77c8534cd83b7102b1b80f86d32bc4d61b25f7 (patch) | |
tree | ecbccf4390461485ecf2d6215bfaffa4bae98256 /engines/hugo/display.cpp | |
parent | 69a88e315cd4e5cb2062b80c206b3ce5c965369a (diff) | |
download | scummvm-rg350-bc77c8534cd83b7102b1b80f86d32bc4d61b25f7.tar.gz scummvm-rg350-bc77c8534cd83b7102b1b80f86d32bc4d61b25f7.tar.bz2 scummvm-rg350-bc77c8534cd83b7102b1b80f86d32bc4d61b25f7.zip |
HUGO: Fix 2 uninitialized variables
svn-id: r55788
Diffstat (limited to 'engines/hugo/display.cpp')
-rw-r--r-- | engines/hugo/display.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/engines/hugo/display.cpp b/engines/hugo/display.cpp index 3ae0e8373f..edf616a503 100644 --- a/engines/hugo/display.cpp +++ b/engines/hugo/display.cpp @@ -45,6 +45,9 @@ namespace Hugo { Screen::Screen(HugoEngine *vm) : _vm(vm) { _mainPalette = 0; _curPalette = 0; + _dlAddIndex = 0; + _dlRestoreIndex = 0; + for (int i = 0; i < kNumFonts; i++) { _arrayFont[i] = 0; fontLoadedFl[i] = false; @@ -56,16 +59,14 @@ Screen::Screen(HugoEngine *vm) : _vm(vm) { _dlBlistList[i].dy = 0; } for (int i = 0; i < kRectListSize; i++) { - _dlRestoreList[i].x = 0; - _dlRestoreList[i].y = 0; - _dlRestoreList[i].dx = 0; - _dlRestoreList[i].dy = 0; - } - for (int i = 0; i < kRectListSize; i++) { _dlAddList[i].x = 0; _dlAddList[i].y = 0; _dlAddList[i].dx = 0; _dlAddList[i].dy = 0; + _dlRestoreList[i].x = 0; + _dlRestoreList[i].y = 0; + _dlRestoreList[i].dx = 0; + _dlRestoreList[i].dy = 0; } } |