1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00

Fix getting battlefield crash

This commit is contained in:
Andrii Danylchenko
2022-07-09 19:00:03 +03:00
parent 4b4cc3cf4b
commit 665bd4346e
5 changed files with 15 additions and 1 deletions

View File

@ -1406,6 +1406,11 @@ void CGArtifact::pick(const CGHeroInstance * h) const
cb->removeObject(this);
}
BattleField CGArtifact::getBattlefield() const
{
return BattleField::NONE;
}
void CGArtifact::battleFinished(const CGHeroInstance *hero, const BattleResult &result) const
{
if(result.winner == 0) //attacker won