X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fbadguy%2Flivefire.cpp;h=dd9c1655f43e1ddc08d22e819c20690d070ad57d;hb=1f5ff04e5283398473b4ac033258b17af0ed08f0;hp=55c91ad6e18db1a8ea6f3478031363285381232a;hpb=75fc1b8f0bd2cc8ba9f448678d46db1e882b40a9;p=supertux.git diff --git a/src/badguy/livefire.cpp b/src/badguy/livefire.cpp index 55c91ad6e..dd9c1655f 100644 --- a/src/badguy/livefire.cpp +++ b/src/badguy/livefire.cpp @@ -136,7 +136,10 @@ LiveFire::kill_fall() Vector ppos = bbox.get_middle(); Vector pspeed = Vector(0, -150); Vector paccel = Vector(0,0); - Sector::current()->add_object(new SpriteParticle("images/objects/particles/smoke.sprite", "default", ppos, ANCHOR_MIDDLE, pspeed, paccel, LAYER_BACKGROUNDTILES+2)); + Sector::current()->add_object(std::make_shared("images/objects/particles/smoke.sprite", + "default", ppos, ANCHOR_MIDDLE, + pspeed, paccel, + LAYER_BACKGROUNDTILES+2)); // extinguish the flame sprite->set_action(dir == LEFT ? "extinguish-left" : "extinguish-right", 1); physic.set_velocity_y(0);