From 560c352a784416ca5f4372722f86fac61a03aa5e Mon Sep 17 00:00:00 2001 From: Zenseii Date: Mon, 13 Jan 2025 10:34:46 +0100 Subject: [PATCH] else if to if --- src/fheroes2/battle/battle_interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fheroes2/battle/battle_interface.cpp b/src/fheroes2/battle/battle_interface.cpp index 926f026ce6..6bb7d92631 100644 --- a/src/fheroes2/battle/battle_interface.cpp +++ b/src/fheroes2/battle/battle_interface.cpp @@ -3276,7 +3276,7 @@ void Battle::Interface::OpenAutoModeDialog( const Unit & unit, Actions & actions if ( le.MouseClickLeft( buttonCancel.area() ) || Game::HotKeyPressEvent( Game::HotKeyEvent::DEFAULT_CANCEL ) ) { return; } - else if ( le.MouseClickLeft( buttonAutoCombat.area() ) ) { + if ( le.MouseClickLeft( buttonAutoCombat.area() ) ) { EventStartAutoBattle( unit, actions ); } else if ( le.MouseClickLeft( buttonAutoResolve.area() ) ) {