Browse Source

vcmi: modernize lib/events

Konstantin 2 years ago
parent
commit
042885c0b8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/events/ApplyDamage.cpp

+ 1 - 1
lib/events/ApplyDamage.cpp

@@ -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;
 }