Skip to content

Commit

Permalink
Fix casting warning
Browse files Browse the repository at this point in the history
  • Loading branch information
idshibanov committed Apr 4, 2024
1 parent 7d9572f commit d99642a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fheroes2/editor/editor_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ namespace Interface
}

std::string str = _( "Set %{monster} Count" );
StringReplace( str, "%{monster}", Monster( object.index + 1 ).GetName() );
StringReplace( str, "%{monster}", Monster( static_cast<int>( object.index ) + 1 ).GetName() );

fheroes2::ActionCreator action( _historyManager, _mapFormat );
if ( Dialog::SelectCount( str, 0, 500000, monsterCount ) ) {
Expand Down

0 comments on commit d99642a

Please sign in to comment.