Skip to content

Commit

Permalink
Fix some recent code smells (#7559)
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-derevenetz committed Aug 14, 2023
1 parent ae6217a commit a5c866d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/fheroes2/game/game_startgame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1424,7 +1424,7 @@ void Interface::AdventureMap::mouseCursorAreaClickLeft( const int32_t tileIndex
void Interface::AdventureMap::mouseCursorAreaPressRight( const int32_t tileIndex ) const
{
#ifndef NDEBUG
Heroes * focusedHero = GetFocusHeroes();
const Heroes * focusedHero = GetFocusHeroes();
#endif
assert( focusedHero == nullptr || !focusedHero->Modes( Heroes::ENABLEMOVE ) );

Expand Down
2 changes: 1 addition & 1 deletion src/fheroes2/gui/interface_events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ void Interface::AdventureMap::EventCastSpell()
fheroes2::GameMode Interface::AdventureMap::EventEndTurn() const
{
#ifndef NDEBUG
Heroes * focusedHero = GetFocusHeroes();
const Heroes * focusedHero = GetFocusHeroes();
#endif
assert( focusedHero == nullptr || !focusedHero->Modes( Heroes::ENABLEMOVE ) );

Expand Down

0 comments on commit a5c866d

Please sign in to comment.