diff options
Diffstat (limited to 'src/resources/db/chardb.cpp')
-rw-r--r-- | src/resources/db/chardb.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/resources/db/chardb.cpp b/src/resources/db/chardb.cpp index 9b6f24358..84cdd6327 100644 --- a/src/resources/db/chardb.cpp +++ b/src/resources/db/chardb.cpp @@ -102,8 +102,10 @@ void CharDB::loadMinMax(const XmlNodePtr node, unsigned *restrict const min, unsigned *restrict const max) { - *min = XML::getProperty(node, "min", 1); - *max = XML::getProperty(node, "max", 10); + if (min) + *min = XML::getProperty(node, "min", 1); + if (max) + *max = XML::getProperty(node, "max", 10); } void CharDB::unload() |