Removed AddonMenu sorting code, since Addons are order dependend they should never...
[supertux.git] / src / supertux / spawn_point.cpp
index 701b058..5b66182 100644 (file)
 #include "supertux/spawn_point.hpp"
 #include "util/log.hpp"
 
-SpawnPoint::SpawnPoint()
+SpawnPoint::SpawnPoint() :
+  name(),
+  pos()
 {}
 
-SpawnPoint::SpawnPoint(const SpawnPoint& other)
-  : name(other.name), pos(other.pos)
+SpawnPoint::SpawnPoint(const SpawnPoint& other) :
+  name(other.name),
+  pos(other.pos)
 {}
 
-SpawnPoint::SpawnPoint(const lisp::Lisp* slisp)
+SpawnPoint::SpawnPoint(const Reader& slisp) :
+  name(),
+  pos()
 {
   pos.x = -1;
   pos.y = -1;
-  lisp::ListIterator iter(slisp);
+  lisp::ListIterator iter(&slisp);
   while(iter.next()) {
     const std::string& token = iter.item();
     if(token == "name") {