diff options
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/game/Server/WorldSocket.cpp | 2 | ||||
| -rw-r--r-- | src/server/shared/Realm/RealmList.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Server/WorldSocket.cpp b/src/server/game/Server/WorldSocket.cpp index 6dac06165c8..79f461eaad9 100644 --- a/src/server/game/Server/WorldSocket.cpp +++ b/src/server/game/Server/WorldSocket.cpp @@ -270,7 +270,7 @@ struct AccountInfo // LEFT JOIN account r ON a.id = r.recruiter // WHERE a.username = ? ORDER BY aa.RealmID DESC LIMIT 1 Id = fields[0].GetUInt32(); - HexStrToByteArray(fields[1].GetCString(), SessionKey.data()); + HexStrToByteArray(fields[1].GetCString(), SessionKey); LastIP = fields[2].GetString(); IsLockedToIP = fields[3].GetBool(); LockCountry = fields[4].GetString(); diff --git a/src/server/shared/Realm/RealmList.cpp b/src/server/shared/Realm/RealmList.cpp index 522c0faeebb..a59af781352 100644 --- a/src/server/shared/Realm/RealmList.cpp +++ b/src/server/shared/Realm/RealmList.cpp @@ -77,11 +77,11 @@ void RealmList::LoadBuildInfo() build.Build = fields[4].GetUInt32(); std::string windowsHash = fields[5].GetString(); if (windowsHash.length() == build.WindowsHash.size() * 2) - HexStrToByteArray(windowsHash, build.WindowsHash.data()); + HexStrToByteArray(windowsHash, build.WindowsHash); std::string macHash = fields[6].GetString(); if (macHash.length() == build.MacHash.size() * 2) - HexStrToByteArray(macHash, build.MacHash.data()); + HexStrToByteArray(macHash, build.MacHash); } while (result->NextRow()); } |
