X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fbadguy%2Fdarttrap.cpp;h=1fb822edddb59cac0ed30515cc0ea895db8bcfd4;hb=5c7020e504303cf18e472283ab614ef08ad43b2c;hp=3885cb684b94dc65c0dbfc932f364c2c7ec7cf2e;hpb=a52595afbb418f560e9a23ef59e0fb7661d2d995;p=supertux.git diff --git a/src/badguy/darttrap.cpp b/src/badguy/darttrap.cpp index 3885cb684..1fb822edd 100644 --- a/src/badguy/darttrap.cpp +++ b/src/badguy/darttrap.cpp @@ -97,7 +97,7 @@ DartTrap::fire() py += MUZZLE_Y; SoundManager::current()->play("sounds/dartfire.wav", get_pos()); - Sector::current()->add_object(new Dart(Vector(px, py), dir, this)); + Sector::current()->add_object(std::make_shared(Vector(px, py), dir, this)); state = IDLE; sprite->set_action(dir == LEFT ? "idle-left" : "idle-right"); }