Skip to content

Commit

Permalink
Moved extra_hit_sounds to a smaller scope
Browse files Browse the repository at this point in the history
  • Loading branch information
ln-zookeeper committed Sep 7, 2015
1 parent d89ab75 commit 5c2927f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/actions/attack.cpp
Expand Up @@ -894,8 +894,6 @@ namespace {
int ran_num = random_new::generator->get_random_int(0,99);
bool hits = (ran_num < attacker.cth_);

std::vector<std::string> extra_hit_sounds;

int damage = 0;
if (hits) {
damage = attacker.damage_;
Expand Down Expand Up @@ -979,6 +977,7 @@ namespace {
if (update_display_)
{
std::ostringstream float_text;
std::vector<std::string> extra_hit_sounds;
if (hits)
{
const unit &defender_unit = defender.get_unit();
Expand Down

0 comments on commit 5c2927f

Please sign in to comment.