summaryrefslogtreecommitdiffstats
path: root/sigmod/MapWarp.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-01-16 18:49:24 -0500
committerBen Boeckel <MathStuf@gmail.com>2009-01-16 18:49:24 -0500
commit599434121243d16ef44355a16f5db36596c05630 (patch)
treea5ef2dcf76cc2e883fc32e713889b57691331fb9 /sigmod/MapWarp.cpp
parent208ac8217cc25cf81e61e5ad3269259bf921265c (diff)
Added special load/save for enumerations
Diffstat (limited to 'sigmod/MapWarp.cpp')
-rw-r--r--sigmod/MapWarp.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/sigmod/MapWarp.cpp b/sigmod/MapWarp.cpp
index 157f2de9..ba0276dd 100644
--- a/sigmod/MapWarp.cpp
+++ b/sigmod/MapWarp.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright 2007-2008 Ben Boeckel <MathStuf@gmail.com>
+ * Copyright 2007-2009 Ben Boeckel <MathStuf@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -71,7 +71,7 @@ void Sigmod::MapWarp::load(const QDomElement& xml)
LOAD_BEGIN();
LOAD(name);
LOAD(area);
- LOAD(type);
+ LOAD_ENUM(type, Type);
LOAD(toMap);
LOAD(toWarp);
LOAD(script);
@@ -82,7 +82,7 @@ QDomElement Sigmod::MapWarp::save() const
SAVE_CREATE();
SAVE(name);
SAVE(area);
- SAVE(type);
+ SAVE_ENUM(type, Type);
SAVE(toMap);
SAVE(toWarp);
SAVE(script);