summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/resources/db/chardb.cpp3
-rw-r--r--src/resources/db/chardb.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/resources/db/chardb.cpp b/src/resources/db/chardb.cpp
index 1c2e0ec82..f97dd9b3b 100644
--- a/src/resources/db/chardb.cpp
+++ b/src/resources/db/chardb.cpp
@@ -91,7 +91,8 @@ void CharDB::load()
}
void CharDB::loadMinMax(const XmlNodePtr node,
- unsigned *const min, unsigned *const max)
+ unsigned *restrict const min,
+ unsigned *restrict const max)
{
*min = XML::getProperty(node, "min", 1);
*max = XML::getProperty(node, "max", 10);
diff --git a/src/resources/db/chardb.h b/src/resources/db/chardb.h
index ea51e7358..8edefe8a1 100644
--- a/src/resources/db/chardb.h
+++ b/src/resources/db/chardb.h
@@ -42,7 +42,8 @@ namespace CharDB
void unload();
void loadMinMax(const XmlNodePtr node,
- unsigned *const min, unsigned *const max);
+ unsigned *restrict const min,
+ unsigned *restrict const max);
unsigned getMinHairColor() A_WARN_UNUSED;