Use std::unique_ptr<> throughout the audio system
[supertux.git] / src / badguy / dart.cpp
index deac0ff..47889d9 100644 (file)
@@ -75,7 +75,7 @@ Dart::initialize()
 void
 Dart::activate()
 {
-  sound_source.reset(sound_manager->create_sound_source(DART_SOUND));
+  sound_source = sound_manager->create_sound_source(DART_SOUND);
   sound_source->set_position(get_pos());
   sound_source->set_looping(true);
   sound_source->set_gain(1.0);