aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_customprefix.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-03-27 15:30:41 +0100
committerGravatar Sadie Powell2022-03-27 15:30:41 +0100
commitf06ea52d0ab08db213b2c2fd81a4dee95910af16 (patch)
tree1d91cc063670e5458ac4124ce1705db74734102b /src/modules/m_customprefix.cpp
parentMerge branch 'insp3' into master. (diff)
parentAdd support for matching against geolocation data with WHO. (diff)
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules/m_customprefix.cpp')
-rw-r--r--src/modules/m_customprefix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_customprefix.cpp b/src/modules/m_customprefix.cpp
index fb2b58bd3..74abde099 100644
--- a/src/modules/m_customprefix.cpp
+++ b/src/modules/m_customprefix.cpp
@@ -32,7 +32,7 @@ public:
: PrefixMode(parent, Name, Letter, 0, Prefix)
, tag(Tag)
{
- unsigned int rank = static_cast<unsigned int>(tag->getUInt("rank", 0, 0, UINT_MAX));
+ unsigned int rank = static_cast<unsigned int>(tag->getUInt("rank", 1, 1, UINT_MAX));
unsigned int setrank = static_cast<unsigned int>(tag->getUInt("ranktoset", prefixrank, rank, UINT_MAX));
unsigned int unsetrank = static_cast<unsigned int>(tag->getUInt("ranktounset", setrank, setrank, UINT_MAX));
bool depriv = tag->getBool("depriv", true);