diff options
Diffstat (limited to 'src/KingSystem/Utils/StrTreeMap.h')
| -rw-r--r-- | src/KingSystem/Utils/StrTreeMap.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/KingSystem/Utils/StrTreeMap.h b/src/KingSystem/Utils/StrTreeMap.h index 62c4dd09..52f72f4d 100644 --- a/src/KingSystem/Utils/StrTreeMap.h +++ b/src/KingSystem/Utils/StrTreeMap.h @@ -3,6 +3,7 @@ #include <basis/seadTypes.h> #include <codec/seadHashCRC32.h> #include <container/seadTreeMap.h> +#include <prim/seadDelegate.h> namespace ksys::util { @@ -10,7 +11,7 @@ class StrTreeMapKey { public: StrTreeMapKey() = default; StrTreeMapKey(u32 key_hash, const sead::SafeString& key) : mKeyHash(key_hash), mKey(key) {} - explicit StrTreeMapKey(const sead::SafeString& key) + StrTreeMapKey(const sead::SafeString& key) : StrTreeMapKey(sead::HashCRC32::calcStringHash(key.cstr()), key) {} const sead::SafeString& key() const { return mKey; } |
