Skip to content

Commit

Permalink
Merge pull request #37417 from jbytheway/uninitialized-resistances
Browse files Browse the repository at this point in the history
Avoid uninitialized resistance values
  • Loading branch information
ZhilkinSerg committed Jan 26, 2020
2 parents c65d44b + 9a1798d commit 88c370c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/damage.cpp
Expand Up @@ -194,7 +194,7 @@ resistances::resistances( const item &armor, bool to_self )
}
}
}
resistances::resistances( monster &monster )
resistances::resistances( monster &monster ) : resistances()
{
set_resist( DT_BASH, monster.type->armor_bash );
set_resist( DT_CUT, monster.type->armor_cut );
Expand Down

0 comments on commit 88c370c

Please sign in to comment.