From ddae4df4abea90058853d9b7bb2058732836dc82 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Fri, 7 Oct 2022 23:31:17 +0300 Subject: [PATCH] Fix red dialog buttons --- src/game_dialog.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/game_dialog.cc b/src/game_dialog.cc index d6ca346..a27d8bb 100644 --- a/src/game_dialog.cc +++ b/src/game_dialog.cc @@ -4623,15 +4623,15 @@ static void gameDialogHighlightsExit() static void gameDialogRedButtonsInit() { - // di_rdbt2.frm - dialog red button down - int pressedFid = buildFid(OBJ_TYPE_INTERFACE, 96, 0, 0, 0); - if (!_redButtonPressedFrmImage.lock(pressedFid)) { + // di_rdbt2.frm - dialog red button up + int normalFid = buildFid(OBJ_TYPE_INTERFACE, 96, 0, 0, 0); + if (!_redButtonNormalFrmImage.lock(normalFid)) { gameDialogRedButtonsExit(); } - // di_rdbt1.frm - dialog red button up - int normalFid = buildFid(OBJ_TYPE_INTERFACE, 95, 0, 0, 0); - if (!_redButtonNormalFrmImage.lock(normalFid)) { + // di_rdbt1.frm - dialog red button down + int pressedFid = buildFid(OBJ_TYPE_INTERFACE, 95, 0, 0, 0); + if (!_redButtonPressedFrmImage.lock(pressedFid)) { gameDialogRedButtonsExit(); } }