Replaced Ref and RefCounter with std::shared_ptr<>
[supertux.git] / src / object / pneumatic_platform.cpp
index b295de8..c76f8b1 100644 (file)
@@ -86,7 +86,7 @@ void
 PneumaticPlatform::update(float elapsed_time)
 {
   if (!slave) {
-    Sector::current()->add_object(new PneumaticPlatform(this));
+    Sector::current()->add_object(std::make_shared<PneumaticPlatform>(this));
     return;
   }
   if (!master) {