From 640536a5842ff4bcb42aa7122746e4cabf4bdf01 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 17 Apr 2014 22:50:42 +0300 Subject: FULLPIPE: Fix crash --- engines/fullpipe/modal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/fullpipe') diff --git a/engines/fullpipe/modal.cpp b/engines/fullpipe/modal.cpp index 50ef3ecb48..5cdc449d91 100644 --- a/engines/fullpipe/modal.cpp +++ b/engines/fullpipe/modal.cpp @@ -838,7 +838,7 @@ ModalMainMenu::ModalMainMenu() { area->picObjL = _scene->getPictureObjectById(area->picIdL, 0); area->picObjL->_flags &= 0xFFFB; _areas.push_back(area); - _musicSliderIdx = _areas.size(); + _musicSliderIdx = _areas.size() - 1; if (g_fp->_mainMenu_debugEnabled) enableDebugMenuButton(); -- cgit v1.2.3