diff --git a/src/fheroes2/editor/editor_interface.cpp b/src/fheroes2/editor/editor_interface.cpp index 0fce995a1dc..6d6b6ac9d50 100644 --- a/src/fheroes2/editor/editor_interface.cpp +++ b/src/fheroes2/editor/editor_interface.cpp @@ -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( object.index ) + 1 ).GetName() ); fheroes2::ActionCreator action( _historyManager, _mapFormat ); if ( Dialog::SelectCount( str, 0, 500000, monsterCount ) ) {