X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Ftrigger%2Fswitch.cpp;h=329a50f337f1f23e5e80474f50ce90adbc645b1a;hb=c1277f5b7db9f55d1d28f658b4e804f32b76f0ce;hp=e01e887ee05855d8bdabbf0bd26520ce101bf7be;hpb=84abfaeb33c5bf8dac0cfd9499d9d4c3e7d39881;p=supertux.git diff --git a/src/trigger/switch.cpp b/src/trigger/switch.cpp index e01e887ee..329a50f33 100644 --- a/src/trigger/switch.cpp +++ b/src/trigger/switch.cpp @@ -29,6 +29,9 @@ const std::string SWITCH_SOUND = "sounds/switch.ogg"; } Switch::Switch(const Reader& reader) : + sprite_name(), + sprite(), + script(), state(OFF) { if (!reader.get("x", bbox.p1.x)) throw std::runtime_error("no x position set");