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

vcmi: modernize lib/events

This commit is contained in:
Konstantin 2023-02-15 01:12:34 +03:00
parent 462599a5c6
commit 042885c0b8

View File

@ -28,7 +28,7 @@ SubscriptionRegistry<ApplyDamage> * ApplyDamage::getRegistry()
CApplyDamage::CApplyDamage(const Environment * env_, BattleStackAttacked * pack_, std::shared_ptr<battle::Unit> target_)
: pack(pack_),
target(target_)
target(std::move(target_))
{
initalDamage = pack->damageAmount;
}