1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fixed missing addInfo when owner updater is used

This commit is contained in:
Ivan Savenko 2024-07-08 20:57:14 +00:00
parent c64e7ee14c
commit a19b3b61ad

View File

@ -196,7 +196,7 @@ std::shared_ptr<Bonus> OwnerUpdater::createUpdatedBonus(const std::shared_ptr<Bo
owner = PlayerColor::NEUTRAL;
std::shared_ptr<Bonus> updated =
std::make_shared<Bonus>(b->duration, b->type, b->source, b->val, b->sid, b->subtype, b->valType);
std::make_shared<Bonus>(*b);
updated->limiter = std::make_shared<OppositeSideLimiter>(owner);
return updated;
}