Skip to content

Commit

Permalink
Attack Prediction: use a constexpr static instead of a macro constant
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed May 10, 2017
1 parent c83021f commit c5da7b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/attack_prediction.cpp
Expand Up @@ -2344,7 +2344,7 @@ double combatant::average_hp(unsigned int healing) const
#if defined(BENCHMARK) || defined(CHECK)
// We create a significant number of nasty-to-calculate units,
// and test each one against the others.
#define NUM_UNITS 50
static CONSTEXPR unsigned int NUM_UNITS = 50;

#ifdef ATTACK_PREDICTION_DEBUG
void list_combatant(const battle_context_unit_stats& stats, unsigned fighter)
Expand Down

1 comment on commit c5da7b2

@CelticMinstrel
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make this const instead of CONSTEXPR.

Please sign in to comment.