X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibmarklin%2Flocotype.cpp;h=6dcd6ae302920757072eee25c0fb5d00eb168ed6;hb=6dc18b0e518407bd2a86602bae1e9bbae05da7c8;hp=31a995a4c1abd181f8f24087ee426dac4c2a1e27;hpb=447d621e93e71b710fed0920b473350122426b97;p=r2c2.git diff --git a/source/libmarklin/locotype.cpp b/source/libmarklin/locotype.cpp index 31a995a..6dcd6ae 100644 --- a/source/libmarklin/locotype.cpp +++ b/source/libmarklin/locotype.cpp @@ -1,3 +1,10 @@ +/* $Id$ + +This file is part of the MSP Märklin suite +Copyright © 2006-2009 Mikkosoft Productions, Mikko Rasa +Distributed under the GPL +*/ + #include "locotype.h" using namespace std; @@ -10,7 +17,7 @@ LocoType::LocoType(unsigned an): LocoType::Loader::Loader(LocoType <): - ltype(lt) + Msp::DataFile::BasicLoader(lt) { add("function", &Loader::function); add("name", &LocoType::name); @@ -18,7 +25,7 @@ LocoType::Loader::Loader(LocoType <): void LocoType::Loader::function(unsigned i, const string &f) { - ltype.funcs[i]=f; + obj.funcs[i] = f; } } // namespace Marklin