X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fbadguy%2Fpoisonivy.cpp;h=799d040c864cf38a002ac70f48d5815fd4e0dbe2;hb=1af645a4cafe78ed2fe16294cf0b19aca43fcf6e;hp=c8973af193ac6791baf0be3cc6c435db0d79aeb8;hpb=b4ffa23e2beb6d10f8f5f2fccd4b41fb3e344759;p=supertux.git diff --git a/src/badguy/poisonivy.cpp b/src/badguy/poisonivy.cpp index c8973af19..799d040c8 100644 --- a/src/badguy/poisonivy.cpp +++ b/src/badguy/poisonivy.cpp @@ -54,7 +54,11 @@ PoisonIvy::collision_squished(GameObject& object) float vy = -cos(angle)*velocity; Vector pspeed = Vector(vx, vy); Vector paccel = Vector(0, 100); - Sector::current()->add_object(new SpriteParticle("images/objects/particles/poisonivy.sprite", "default", ppos, ANCHOR_MIDDLE, pspeed, paccel, LAYER_OBJECTS-1)); + Sector::current()->add_object(std::make_shared("images/objects/particles/poisonivy.sprite", + "default", + ppos, ANCHOR_MIDDLE, + pspeed, paccel, + LAYER_OBJECTS-1)); } kill_squished(object); return true;