Fix crash on ESC press when no music is playing
[supertux.git] / src / object / ghost_particle_system.hpp
index 6a85e04..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
 #ifndef HEADER_SUPERTUX_OBJECT_GHOST_PARTICLE_SYSTEM_HPP
 #define HEADER_SUPERTUX_OBJECT_GHOST_PARTICLE_SYSTEM_HPP
 
+#include <memory>
+
 #include "object/particlesystem.hpp"
+#include "video/surface_ptr.hpp"
 
 class GhostParticleSystem : public ParticleSystem
 {
@@ -26,7 +29,7 @@ public:
   virtual ~GhostParticleSystem();
 
   void parse(const Reader& lisp);
-  
+
   virtual void update(float elapsed_time);
 
   std::string type() const
@@ -43,7 +46,7 @@ private:
     {}
   };
 
-  Surface* ghosts[2];
+  SurfacePtr ghosts[2];
 
 private:
   GhostParticleSystem(const GhostParticleSystem&);