From d99642ac704872b8bdf1910b09a1604cfea8615c Mon Sep 17 00:00:00 2001 From: Ivan Shibanov Date: Wed, 3 Apr 2024 21:13:06 -0400 Subject: [PATCH] Fix casting warning --- src/fheroes2/editor/editor_interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) ) {