Skip to content

Commit

Permalink
Fix for coverity #29401
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbi committed Feb 22, 2015
1 parent bc51371 commit 64842a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/object/sprite_particle.cpp
Expand Up @@ -43,12 +43,13 @@ SpriteParticle::SpriteParticle(std::string sprite_name, std::string action,

this->position -= get_anchor_pos(sprite->get_current_hitbox(), anchor);

if(sprite_name=="images/objects/particles/sparkle.sprite")
if(sprite_name=="images/objects/particles/sparkle.sprite") {
glow = true;
if(action=="dark") {
lightsprite->set_blend(Blend(GL_SRC_ALPHA, GL_ONE));
lightsprite->set_color(Color(0.1f, 0.1f, 0.1f));
}
}
}

SpriteParticle::~SpriteParticle()
Expand Down

0 comments on commit 64842a0

Please sign in to comment.