Skip to content

Commit

Permalink
Fix the "unused parameter 'objectType'" warning in release builds (#7424
Browse files Browse the repository at this point in the history
)
  • Loading branch information
oleg-derevenetz authored Jul 17, 2023
1 parent 3a79ef2 commit 1a97673
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/fheroes2/ai/normal/ai_normal_hero.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1613,6 +1613,10 @@ namespace AI
{
assert( objectType == world.GetTiles( index ).GetObject() );

#ifdef NDEBUG
(void)objectType;
#endif

switch ( hero.getAIRole() ) {
case Heroes::Role::HUNTER:
case Heroes::Role::SCOUT:
Expand Down

0 comments on commit 1a97673

Please sign in to comment.