Code style: use parentheses for creating heap-based objects (#344)

This commit is contained in:
ArseniyShestakov authored and GitHub committed 2017-07-16 12:58:05 +03:00
1 parent 21c0c95049
commit b52cfe5283
26 files changed
+59 -59

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@
int AttackPossibility::damageDiff() const
{
if (!priorities)
priorities = new Priorities;
priorities = new Priorities();
const auto dealtDmgValue = priorities->stackEvaluator(enemy) * damageDealt;
const auto receivedDmgValue = priorities->stackEvaluator(attack.attacker) * damageReceived;
return dealtDmgValue - receivedDmgValue;