Skip to content

Commit

Permalink
loop fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
anothersimulacrum authored and kevingranade committed Apr 27, 2020
1 parent c87aaea commit f085822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/monster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2017,7 +2017,7 @@ void monster::disable_special( const std::string &special_name )
int monster::shortest_special_cooldown() const
{
int countdown = std::numeric_limits<int>::max();
for( const std::pair<std::string, mon_special_attack> &sp_type : special_attacks ) {
for( const std::pair<const std::string, mon_special_attack> &sp_type : special_attacks ) {
const mon_special_attack &local_attack_data = sp_type.second;
if( !local_attack_data.enabled ) {
continue;
Expand Down

0 comments on commit f085822

Please sign in to comment.