Replaced Ref and RefCounter with std::shared_ptr<>
[supertux.git] / src / object / thunderstorm.cpp
index 187a4c3..af9e410 100644 (file)
@@ -138,8 +138,8 @@ Thunderstorm::flash()
 void
 Thunderstorm::electrify()
 {
-  Sector::current()->add_object(new Electrifier(200, 1421, ELECTRIFY_TIME));
-  Sector::current()->add_object(new Electrifier(201, 1422, ELECTRIFY_TIME));
+  Sector::current()->add_object(std::make_shared<Electrifier>(200, 1421, ELECTRIFY_TIME));
+  Sector::current()->add_object(std::make_shared<Electrifier>(201, 1422, ELECTRIFY_TIME));
 }
 
 /* EOF */