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:
parent
462599a5c6
commit
042885c0b8
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user