Fix for coverity #29401
authorTobias Markus <tobbi@mozilla-uk.org>
Sun, 22 Feb 2015 15:26:46 +0000 (16:26 +0100)
committerTobias Markus <tobbi@mozilla-uk.org>
Sun, 22 Feb 2015 15:26:46 +0000 (16:26 +0100)
src/object/sprite_particle.cpp

index 0285207..18777da 100644 (file)
@@ -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()