More -Weffc++ cleanup
[supertux.git] / src / object / pushbutton.cpp
index 5816607..5488de3 100644 (file)
@@ -26,8 +26,10 @@ const std::string BUTTON_SOUND = "sounds/switch.ogg";
 //14 -> 8
 }
 
-PushButton::PushButton(const Reader& lisp)
-  : MovingSprite(lisp, "images/objects/pushbutton/pushbutton.sprite", LAYER_BACKGROUNDTILES+1, COLGROUP_MOVING), state(OFF)
+PushButton::PushButton(const Reader& lisp) :
+  MovingSprite(lisp, "images/objects/pushbutton/pushbutton.sprite", LAYER_BACKGROUNDTILES+1, COLGROUP_MOVING), 
+  script(),
+  state(OFF)
 {
   sound_manager->preload(BUTTON_SOUND);
   set_action("off", -1);