Use std::unique_ptr<> throughout the audio system
[supertux.git] / src / badguy / goldbomb.cpp
index 6b626a6..1fbe184 100644 (file)
@@ -114,7 +114,7 @@ GoldBomb::collision_squished(GameObject& object)
     if (player)
       player->bounce(*this);
 
-    ticking.reset(sound_manager->create_sound_source("sounds/fizz.wav"));
+    ticking = sound_manager->create_sound_source("sounds/fizz.wav");
     ticking->set_position(get_pos());
     ticking->set_looping(true);
     ticking->set_gain(2.0);