diff --git a/Source/Contents/Hotkeys/EmotionHotkeys.cpp b/Source/Contents/Hotkeys/EmotionHotkeys.cpp index 2cb20ee23..8a7431878 100644 --- a/Source/Contents/Hotkeys/EmotionHotkeys.cpp +++ b/Source/Contents/Hotkeys/EmotionHotkeys.cpp @@ -11,6 +11,8 @@ #include #include +extern template bool std::_Traits_equal>(const char*, std::size_t, const char*, std::size_t) noexcept; + // OFFSET: 0x005BC230 // FUNCTION: fn_03463 void EmotionHotkeys::Load(Json::Value& data) { @@ -29,8 +31,10 @@ void EmotionHotkeys::Load(Json::Value& data) { // FUNCTION: fn_23900 bool EmotionHotkeys::HasChanges() const { if (!this->saved.empty()) { + const std::string* current = this->current.data(); + const std::string* saved = this->saved.data(); for (int i = 0; i < 10; ++i) { - if (this->saved[i] != this->current[i]) { + if (saved[i] != current[i]) { return true; } } diff --git a/Source/Contents/Hotkeys/UserHotkeyScript.cpp b/Source/Contents/Hotkeys/UserHotkeyScript.cpp index 329204715..eb256d381 100644 --- a/Source/Contents/Hotkeys/UserHotkeyScript.cpp +++ b/Source/Contents/Hotkeys/UserHotkeyScript.cpp @@ -2,6 +2,8 @@ #include "Contents/Hotkeys/UserHotkeyScript.h" #include "Network/TextEncoding.h" +template bool std::_Traits_equal>(const char*, std::size_t, const char*, std::size_t) noexcept; + // OFFSET: 0x005F7D60 // FUNCTION: fn_04055 void ClearUserHotkeys() {