X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fsupertux%2Fspawn_point.cpp;h=8cc24c00e56bbe0991c39d65c3393e5ed0e987ff;hb=9ea35748100d9feb67a66f8a6656cc60f41bfa8c;hp=701b058d8f1b4481b8d8263b8a0e61ead50113be;hpb=08813a74da6ac1fd045a105e4e8105f1d7f716f0;p=supertux.git diff --git a/src/supertux/spawn_point.cpp b/src/supertux/spawn_point.cpp index 701b058d8..8cc24c00e 100644 --- a/src/supertux/spawn_point.cpp +++ b/src/supertux/spawn_point.cpp @@ -20,18 +20,23 @@ #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") {