X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Fispy.cpp;h=5a7092ef9980c9077183222cb6848505c04dd4fd;hb=78ac7aef674f518549f96160c6354b589553f952;hp=5a9335099e444ec9d0dc9c60124187f691612712;hpb=08813a74da6ac1fd045a105e4e8105f1d7f716f0;p=supertux.git diff --git a/src/object/ispy.cpp b/src/object/ispy.cpp index 5a9335099..5a7092ef9 100644 --- a/src/object/ispy.cpp +++ b/src/object/ispy.cpp @@ -22,9 +22,13 @@ #include "supertux/object_factory.hpp" #include "supertux/sector.hpp" #include "supertux/tile.hpp" +#include "util/reader.hpp" -Ispy::Ispy(const Reader& reader) - : MovingSprite(reader, "images/objects/ispy/ispy.sprite", LAYER_TILES+5, COLGROUP_DISABLED), state(ISPYSTATE_IDLE), dir(AUTO) +Ispy::Ispy(const Reader& reader) : + MovingSprite(reader, "images/objects/ispy/ispy.sprite", LAYER_TILES+5, COLGROUP_DISABLED), + state(ISPYSTATE_IDLE), + script(), + dir(AUTO) { // read script to execute reader.get("script", script);