From 6dd8718da631b0dcf8b262d1424f854a664abe5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix-Antoine=20Constantin?= <60141446+felix642@users.noreply.github.com> Date: Mon, 6 Jan 2025 06:37:31 -0500 Subject: [PATCH] Display spell name in dialog for spell casting error (#9415) --- src/fheroes2/battle/battle_interface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fheroes2/battle/battle_interface.cpp b/src/fheroes2/battle/battle_interface.cpp index c96ec7f6f08..df798c8f315 100644 --- a/src/fheroes2/battle/battle_interface.cpp +++ b/src/fheroes2/battle/battle_interface.cpp @@ -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 * @@ -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;