Explorar o código

Fixed crash when artifact casts spell ( #991 )

Michał W. Urbańczyk %!s(int64=13) %!d(string=hai) anos
pai
achega
d0816a7924
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      client/BattleInterface/CBattleInterface.cpp

+ 1 - 1
client/BattleInterface/CBattleInterface.cpp

@@ -1792,7 +1792,7 @@ void CBattleInterface::spellCast( const BattleSpellCast * sc )
 		else
 		{
 			//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);
 		console->addText(text);