X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Fpushbutton.cpp;h=5488de3451b3043c70d99a9cc5d5e3faecc0de5d;hb=84abfaeb33c5bf8dac0cfd9499d9d4c3e7d39881;hp=5816607e535ca94ce5dbe3941af6546e90e8b94c;hpb=08813a74da6ac1fd045a105e4e8105f1d7f716f0;p=supertux.git diff --git a/src/object/pushbutton.cpp b/src/object/pushbutton.cpp index 5816607e5..5488de345 100644 --- a/src/object/pushbutton.cpp +++ b/src/object/pushbutton.cpp @@ -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);