New powerups added to cheat menu
[supertux.git] / src / object / bicycle_platform.cpp
index 43a8a68..4ff074e 100644 (file)
@@ -92,7 +92,7 @@ void
 BicyclePlatform::update(float elapsed_time)
 {
   if (!slave) {
-    Sector::current()->add_object(new BicyclePlatform(this));
+    Sector::current()->add_object(std::make_shared<BicyclePlatform>(this));
     return;
   }
   if (!master) {