diff options
| author | Léo Lam <leo@leolam.fr> | 2020-10-24 20:59:43 +0200 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2020-10-24 21:00:59 +0200 |
| commit | 6cae9c75b5d993116681d00950fdf6896f7ec2d9 (patch) | |
| tree | 561007a55df0e4a4b66b1a2dbe2ea5ff21d0f9fc /src/KingSystem/Utils/StrTreeMap.h | |
| parent | f8862135935d8a80e2e971f82f8ab30f15e501bc (diff) | |
Use sead::SafeString overload of HashCRC32::calcStringHash
Diffstat (limited to 'src/KingSystem/Utils/StrTreeMap.h')
| -rw-r--r-- | src/KingSystem/Utils/StrTreeMap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/KingSystem/Utils/StrTreeMap.h b/src/KingSystem/Utils/StrTreeMap.h index 52f72f4d..dfe4183f 100644 --- a/src/KingSystem/Utils/StrTreeMap.h +++ b/src/KingSystem/Utils/StrTreeMap.h @@ -12,7 +12,7 @@ public: StrTreeMapKey() = default; StrTreeMapKey(u32 key_hash, const sead::SafeString& key) : mKeyHash(key_hash), mKey(key) {} StrTreeMapKey(const sead::SafeString& key) - : StrTreeMapKey(sead::HashCRC32::calcStringHash(key.cstr()), key) {} + : StrTreeMapKey(sead::HashCRC32::calcStringHash(key), key) {} const sead::SafeString& key() const { return mKey; } |
