diff options
author | Strangerke | 2014-08-06 19:16:08 +0200 |
---|---|---|
committer | Strangerke | 2014-08-06 19:16:08 +0200 |
commit | 76480bed15c304a6a00c51389493b49775309d1a (patch) | |
tree | ef9ee4ee8234568ab43f522e2b38fd253021b139 | |
parent | f24346aad7a773c127a6b557c984ee8140b705a5 (diff) | |
download | scummvm-rg350-76480bed15c304a6a00c51389493b49775309d1a.tar.gz scummvm-rg350-76480bed15c304a6a00c51389493b49775309d1a.tar.bz2 scummvm-rg350-76480bed15c304a6a00c51389493b49775309d1a.zip |
MADS: Rex - Fix some uninitialized variables in the menu
-rw-r--r-- | engines/mads/nebular/menu_nebular.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/mads/nebular/menu_nebular.cpp b/engines/mads/nebular/menu_nebular.cpp index 4743ec4743..98eb669616 100644 --- a/engines/mads/nebular/menu_nebular.cpp +++ b/engines/mads/nebular/menu_nebular.cpp @@ -83,6 +83,9 @@ MainMenu::MainMenu(MADSEngine *vm): MenuView(vm) { _highlightedIndex = -1; _selectedIndex = -1; _buttonDown = false; + + for (int i = 0; i < 7; ++i) + _menuItems[i] = nullptr; } MainMenu::~MainMenu() { @@ -637,6 +640,7 @@ void AnimationView::execute(MADSEngine *vm, const Common::String &resName) { AnimationView::AnimationView(MADSEngine *vm) : MenuView(vm) { _soundDriverLoaded = false; + _previousUpdate = 0; } void AnimationView::load() { |