Fix for coverity #29394
[supertux.git] / src / object / candle.hpp
index ea82414..5c5342e 100644 (file)
@@ -23,7 +23,7 @@
 /**
  * A burning candle: Simple, scriptable level decoration.
  */
-class Candle : public MovingSprite, 
+class Candle : public MovingSprite,
                public ScriptInterface
 {
 public:
@@ -48,8 +48,10 @@ public:
 
 private:
   bool burning; /**< true if candle is currently lighted */
-  Surface candle_light_1; /**< drawn to lightmap */
-  Surface candle_light_2; /**< drawn to lightmap (alternative image) */
+  bool flicker; /**< true if candle light is to flicker */
+  Color lightcolor; /**< determines color or light given off */
+  SpritePtr candle_light_1; /**< drawn to lightmap */
+  SpritePtr candle_light_2; /**< drawn to lightmap (alternative image) */
 
 };