From 3d3311af608692dde71f5cfcb002d7aee1879f18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix-Antoine=20Constantin?= Date: Sun, 5 Jan 2025 16:10:06 -0500 Subject: [PATCH] Display spell name in dialog for spell casting error --- 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;