mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-03 00:46:55 +02:00
Fixed crash when artifact casts spell ( #991 )
This commit is contained in:
@ -1792,7 +1792,7 @@ void CBattleInterface::spellCast( const BattleSpellCast * sc )
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
//TODO artifacts that cast spell; scripts some day
|
//TODO artifacts that cast spell; scripts some day
|
||||||
boost::algorithm::replace_first(text, "Something", CGI->creh->creatures[sc->attackerType]->namePl); //creature caster
|
boost::algorithm::replace_first(text, "%s", "Something");
|
||||||
}
|
}
|
||||||
boost::algorithm::replace_first(text, "%s", CGI->spellh->spells[sc->id]->name);
|
boost::algorithm::replace_first(text, "%s", CGI->spellh->spells[sc->id]->name);
|
||||||
console->addText(text);
|
console->addText(text);
|
||||||
|
Reference in New Issue
Block a user