From 76480bed15c304a6a00c51389493b49775309d1a Mon Sep 17 00:00:00 2001 From: Strangerke Date: Wed, 6 Aug 2014 19:16:08 +0200 Subject: MADS: Rex - Fix some uninitialized variables in the menu --- engines/mads/nebular/menu_nebular.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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() { -- cgit v1.2.3