summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-12-29 07:31:38 +0100
committerSergeanur <s.anureev@yandex.ua>2020-12-29 07:31:38 +0100
commit06df781bca3a6423d48bea5381512f65bdc2cb02 (patch)
treed0e171cef9deb83777d3ebcda127236e3627e19e /src/core
parentfix neo screendroplet moving (diff)
downloadre3-06df781bca3a6423d48bea5381512f65bdc2cb02.tar
re3-06df781bca3a6423d48bea5381512f65bdc2cb02.tar.gz
re3-06df781bca3a6423d48bea5381512f65bdc2cb02.tar.bz2
re3-06df781bca3a6423d48bea5381512f65bdc2cb02.tar.lz
re3-06df781bca3a6423d48bea5381512f65bdc2cb02.tar.xz
re3-06df781bca3a6423d48bea5381512f65bdc2cb02.tar.zst
re3-06df781bca3a6423d48bea5381512f65bdc2cb02.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/Frontend.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/Frontend.cpp b/src/core/Frontend.cpp
index 68815514..04a8fcbe 100644
--- a/src/core/Frontend.cpp
+++ b/src/core/Frontend.cpp
@@ -4552,6 +4552,9 @@ CMenuManager::ProcessUserInput(uint8 goDown, uint8 goUp, uint8 optionSelected, u
}
int option = aScreens[m_nCurrScreen].m_aEntries[m_nCurrOption].m_Action;
+#ifdef FIX_BUGS
+ int currScreen = m_nCurrScreen;
+#endif
switch (option) {
case MENUACTION_CHANGEMENU:
case MENUACTION_YES:
@@ -4827,7 +4830,11 @@ CMenuManager::ProcessUserInput(uint8 goDown, uint8 goUp, uint8 optionSelected, u
}
ProcessOnOffMenuOptions();
if (!goBack) {
+#ifdef FIX_BUGS
+ int saveSlot = aScreens[currScreen].m_aEntries[m_nCurrOption].m_SaveSlot;
+#else
int saveSlot = aScreens[m_nCurrScreen].m_aEntries[m_nCurrOption].m_SaveSlot;
+#endif
if (saveSlot >= SAVESLOT_1 && saveSlot <= SAVESLOT_8 && Slots[m_nCurrOption] != SLOT_OK)
DMAudio.PlayFrontEndSound(SOUND_FRONTEND_FAIL, 0);