]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/locotype.cpp
Add state loading and saving to engineer
[r2c2.git] / source / libmarklin / locotype.cpp
index bfb7bc301feb180785d5c34fca2715efa73e1c0f..9eed205289a74c61566349f9f239a179e53796c1 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$
 
 This file is part of the MSP Märklin suite
-Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa
+Copyright © 2006-200 Mikkosoft Productions, Mikko Rasa
 Distributed under the GPL
 */
 
@@ -17,7 +17,7 @@ LocoType::LocoType(unsigned an):
 
 
 LocoType::Loader::Loader(LocoType &lt):
-       ltype(lt)
+       Msp::DataFile::BasicLoader<LocoType>(lt)
 {
        add("function", &Loader::function);
        add("name",     &LocoType::name);
@@ -25,7 +25,7 @@ LocoType::Loader::Loader(LocoType &lt):
 
 void LocoType::Loader::function(unsigned i, const string &f)
 {
-       ltype.funcs[i]=f;
+       obj.funcs[i]=f;
 }
 
 } // namespace Marklin