Replaced Ref and RefCounter with std::shared_ptr<>
[supertux.git] / src / object / endsequence_fireworks.cpp
index f2f0ba4..b971b25 100644 (file)
@@ -41,7 +41,7 @@ EndSequenceFireworks::starting()
 {
   EndSequence::starting();
   endsequence_timer.start(7.3f * ScreenManager::current()->get_speed());
-  Sector::current()->add_object(new Fireworks());
+  Sector::current()->add_object(std::make_shared<Fireworks>());
 }
 
 void