summaryrefslogtreecommitdiffstats
path: root/sigmod/Nature.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-02-13 13:36:28 -0500
committerBen Boeckel <MathStuf@gmail.com>2009-02-13 13:36:28 -0500
commite247d49bd20fbbf6c2b275c86370300b0f36bb39 (patch)
tree201679c3d6579cb24fe6270d09dc5975e517ae7e /sigmod/Nature.cpp
parent27d630aaea5f0e1b9b63c75a06be332a67861cc3 (diff)
downloadsigen-e247d49bd20fbbf6c2b275c86370300b0f36bb39.tar.gz
sigen-e247d49bd20fbbf6c2b275c86370300b0f36bb39.tar.xz
sigen-e247d49bd20fbbf6c2b275c86370300b0f36bb39.zip
Fix more valgrind errors in sigmod
Diffstat (limited to 'sigmod/Nature.cpp')
-rw-r--r--sigmod/Nature.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/sigmod/Nature.cpp b/sigmod/Nature.cpp
index fe268b74..487bbfdc 100644
--- a/sigmod/Nature.cpp
+++ b/sigmod/Nature.cpp
@@ -64,16 +64,16 @@ void Sigmod::Nature::validate()
TEST_BEGIN();
if (m_name.isEmpty())
emit(error("Name is empty"));
- TEST_ARRAY_INDEX(stat, ST_Attack);
- TEST_ARRAY_INDEX(stat, ST_Defense);
- TEST_ARRAY_INDEX(stat, ST_Speed);
+ TEST_ARRAY_INDEX_OFF(stat, ST_Attack, ST_Attack);
+ TEST_ARRAY_INDEX_OFF(stat, ST_Defense, ST_Attack);
+ TEST_ARRAY_INDEX_OFF(stat, ST_Speed, ST_Attack);
if (sigmod()->rules()->specialSplit())
{
- TEST_ARRAY_INDEX(stat, ST_SpecialAttack);
- TEST_ARRAY_INDEX(stat, ST_SpecialDefense);
+ TEST_ARRAY_INDEX_OFF(stat, ST_SpecialAttack, ST_Attack);
+ TEST_ARRAY_INDEX_OFF(stat, ST_SpecialDefense, ST_Attack);
}
else
- TEST_ARRAY_INDEX(stat, ST_Special);
+ TEST_ARRAY_INDEX_OFF(stat, ST_Special, ST_Attack);
TEST(weight);
TEST_END();
}