Fixed a Segmentation Fault when mr_iceblock was kicked into a brick containing coins...
[supertux.git] / src / object / ambient_sound.hpp
index 1f059ef..d58727e 100644 (file)
@@ -86,12 +86,11 @@ protected:
   virtual void unexpose(HSQUIRRELVM vm, SQInteger table_idx);
 
 private:
-  std::string name; /**< user-defined name for use in scripts or empty string if not scriptable */
   Vector position;
   Vector dimension;
 
   std::string sample;
-  SoundSource* sound_source;
+  std::unique_ptr<SoundSource> sound_source;
   int latency;
 
   float distance_factor;  /// distance scaling