Fix for coverity #29409 - Use char 0 instead of NULL
[supertux.git] / src / trigger / switch.hpp
index a1a601d..8141a8f 100644 (file)
@@ -42,12 +42,11 @@ private:
     TURN_OFF
   };
 
+private:
   std::string sprite_name;
-  std::auto_ptr<Sprite> sprite;
+  SpritePtr sprite;
   std::string script;
-
   SwitchState state;
-
 };
 
 #endif