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:
parent
ead1140b9b
commit
457e73ed12
@ -12,9 +12,9 @@
|
||||
#include "../../lib/CStack.h"
|
||||
|
||||
AttackerValue::AttackerValue()
|
||||
: value(0),
|
||||
isRetalitated(false)
|
||||
{
|
||||
value = 0;
|
||||
isRetalitated = false;
|
||||
}
|
||||
|
||||
MoveTarget::MoveTarget()
|
||||
|
Loading…
Reference in New Issue
Block a user