Skip to content

Commit

Permalink
else if to if
Browse files Browse the repository at this point in the history
  • Loading branch information
zenseii committed Jan 13, 2025
1 parent 2b5c1b9 commit 560c352
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fheroes2/battle/battle_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() ) ) {
Expand Down

0 comments on commit 560c352

Please sign in to comment.