Silence compiler warning
[supertux.git] / src / supertux / game_object.cpp
index bc203e5..3e34a53 100644 (file)
 #include "supertux/object_remove_listener.hpp"
 
 GameObject::GameObject() :
-  wants_to_die(false), 
-  remove_listeners(NULL)
+  wants_to_die(false),
+  remove_listeners(NULL),
+  name()
 {
 }
 
 GameObject::GameObject(const GameObject& rhs) :
   wants_to_die(rhs.wants_to_die),
-  remove_listeners(NULL)
-{  
+  remove_listeners(NULL),
+  name(rhs.name)
+{
 }
 
 GameObject::~GameObject()
@@ -40,8 +42,8 @@ GameObject::~GameObject()
     entry = next;
   }
 }
-void 
+
+void
 GameObject::add_remove_listener(ObjectRemoveListener* listener)
 {
   RemoveListenerListEntry* entry = new RemoveListenerListEntry();