summaryrefslogtreecommitdiffstats
path: root/sigmod/Object.h
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-09-25 22:55:25 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-09-25 22:55:25 +0000
commit64730b32e2c595469eb23e9cd40332b4a80e3e27 (patch)
treea75a17a7c7ac78e2e323e1cdecef8f6a3939f844 /sigmod/Object.h
parent4c4fdc8d4540bd1bd52021b502f05f27a8ef98e1 (diff)
downloadsigen-64730b32e2c595469eb23e9cd40332b4a80e3e27.tar.gz
sigen-64730b32e2c595469eb23e9cd40332b4a80e3e27.tar.xz
sigen-64730b32e2c595469eb23e9cd40332b4a80e3e27.zip
[FIX] Removed *_End defines
[FIX] Added weights to items and associated fields [FIX] Option for pausing during ATB battles when choosing moves added git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@267 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'sigmod/Object.h')
-rw-r--r--sigmod/Object.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sigmod/Object.h b/sigmod/Object.h
index 2d44c82f..6b4ca974 100644
--- a/sigmod/Object.h
+++ b/sigmod/Object.h
@@ -113,6 +113,7 @@ template<> inline void Object::loadValue<int>(const QDomElement& xml, int* value
template<> inline void Object::loadValue<Fraction>(const QDomElement& xml, Fraction* value)
{
value->set(xml.attribute("numerator", "1").toInt(), xml.attribute("denominator", "1").toInt());
+ value->reduce();
}
template<> inline void Object::loadValue<QPoint>(const QDomElement& xml, QPoint* value)