Skip to content

Commit

Permalink
Show a warning message for no modification of normal artifacts
Browse files Browse the repository at this point in the history
relates to #6845
  • Loading branch information
ihhub committed May 18, 2024
1 parent d097964 commit 7e1fdf1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/fheroes2/editor/editor_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1192,6 +1192,11 @@ namespace Interface

action.commit();
}
else {
std::string msg = _( "%{object} has no properties to change." );
StringReplace( msg, "%{object}", _( "This artifact" ) );
_warningMessage.reset( std::move( msg ) );
}
}
else if ( objectType == MP2::OBJ_SPHINX ) {
assert( _mapFormat.sphinxMetadata.find( object.id ) != _mapFormat.sphinxMetadata.end() );
Expand Down

0 comments on commit 7e1fdf1

Please sign in to comment.