Explorar o código

vcmi: modernize lib/events

Konstantin %!s(int64=2) %!d(string=hai) anos
pai
achega
042885c0b8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
 }