1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

AI/BattleAI/BattleExchangeVariant.cpp: Do not assign data members in a constructor. Initialize members in an initialization list.

Member data should be initialized in-class or in a constructor initialization list
This commit is contained in:
Alexander Wilms 2023-10-27 18:41:27 +00:00
parent ead1140b9b
commit 457e73ed12

View File

@ -12,9 +12,9 @@
#include "../../lib/CStack.h"
AttackerValue::AttackerValue()
: value(0),
isRetalitated(false)
{
value = 0;
isRetalitated = false;
}
MoveTarget::MoveTarget()