Skip to content

Commit

Permalink
Display spell name in dialog for spell casting error
Browse files Browse the repository at this point in the history
  • Loading branch information
felix642 committed Jan 5, 2025
1 parent 50c5549 commit 3d3311a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fheroes2/battle/battle_interface.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************************
* fheroes2: https://github.com/ihhub/fheroes2 *
* Copyright (C) 2019 - 2024 *
* Copyright (C) 2019 - 2025 *
* *
* Free Heroes2 Engine: http://sourceforge.net/projects/fheroes2 *
* Copyright (C) 2010 by Andrey Afletdinov <[email protected]> *
Expand Down Expand Up @@ -6501,7 +6501,7 @@ void Battle::Interface::ProcessingHeroDialogResult( const int result, Actions &
assert( spell.isCombat() );

if ( arena.isDisableCastSpell( spell, &msg ) ) {
fheroes2::showStandardTextMessage( "", msg, Dialog::OK );
fheroes2::showStandardTextMessage( spell.GetName(), msg, Dialog::OK );
}
else {
std::string error;
Expand Down

0 comments on commit 3d3311a

Please sign in to comment.