X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fsupertux%2Fspawn_point.cpp;h=8cc24c00e56bbe0991c39d65c3393e5ed0e987ff;hb=9ea35748100d9feb67a66f8a6656cc60f41bfa8c;hp=5f36934df5ad7935c8269086b8aa6cf4b3655c3e;hpb=12a28b64dcce9c7ff706451b4f3aecd201cc8a5f;p=supertux.git diff --git a/src/supertux/spawn_point.cpp b/src/supertux/spawn_point.cpp index 5f36934df..8cc24c00e 100644 --- a/src/supertux/spawn_point.cpp +++ b/src/supertux/spawn_point.cpp @@ -30,11 +30,13 @@ SpawnPoint::SpawnPoint(const SpawnPoint& other) : 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") {