mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Code style: use parentheses for creating heap-based objects (#344)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user