Fix for coverity #29394
[supertux.git] / src / object / ghost_particle_system.hpp
index f8cf89b..1b66f37 100644 (file)
@@ -1,5 +1,5 @@
 //  SuperTux
-//  Copyright (C) 2009 Ingo Ruhnke <grumbel@gmx.de>
+//  Copyright (C) 2009 Ingo Ruhnke <grumbel@gmail.com>
 //
 //  This program is free software: you can redistribute it and/or modify
 //  it under the terms of the GNU General Public License as published by
@@ -20,6 +20,7 @@
 #include <memory>
 
 #include "object/particlesystem.hpp"
+#include "video/surface_ptr.hpp"
 
 class GhostParticleSystem : public ParticleSystem
 {
@@ -28,7 +29,7 @@ public:
   virtual ~GhostParticleSystem();
 
   void parse(const Reader& lisp);
-  
+
   virtual void update(float elapsed_time);
 
   std::string type() const
@@ -45,7 +46,7 @@ private:
     {}
   };
 
-  std::auto_ptr<Surface> ghosts[2];
+  SurfacePtr ghosts[2];
 
 private:
   GhostParticleSystem(const GhostParticleSystem&);