1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

fix OppositeSideLimiter error

This commit is contained in:
kdmcser
2025-05-12 00:46:06 +08:00
parent ac26b3ed9b
commit 7543fee02c
3 changed files with 91 additions and 1 deletions

View File

@@ -232,7 +232,7 @@ std::shared_ptr<Bonus> OwnerUpdater::createUpdatedBonus(const std::shared_ptr<Bo
std::shared_ptr<Bonus> updated =
std::make_shared<Bonus>(*b);
updated->limiter = b->limiter;
updated->limiter = b->limiter->clone();
if (updated->limiter)
updated->limiter->acceptUpdater(*this);
return updated;