Fix crash on ESC press when no music is playing
[supertux.git] / src / object / coin.hpp
index ba517f7..205d843 100644 (file)
@@ -37,8 +37,8 @@ public:
   virtual void update(float elapsed_time);
 
 private:
-  boost::shared_ptr<Path> path;
-  boost::shared_ptr<PathWalker> walker;
+  std::shared_ptr<Path> path;
+  std::shared_ptr<PathWalker> walker;
   Vector offset;
   bool from_tilemap;
   Physic physic;
@@ -48,6 +48,7 @@ class HeavyCoin : public Coin
 {
 public:
   HeavyCoin(const Vector& pos, const Vector& init_velocity);
+  HeavyCoin(const Reader& reader);
 
   virtual void update(float elapsed_time);
   virtual void collision_solid(const CollisionHit& hit);