Skip to content

Commit

Permalink
修复登录时未提供UUID的用户list命令中展示随机UUID的错误
Browse files Browse the repository at this point in the history
  • Loading branch information
AllesUgo committed Aug 17, 2024
1 parent e1c446d commit b28c6db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions datapackage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ auto PingDataPack::ToBuffer() const -> RbsLib::Buffer

auto StartLoginDataPack::GetUUID() const -> std::string
{
if (!this->have_uuid) return std::string();
char buffer[64];
sprintf(buffer, "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",
this->uuid[0], this->uuid[1], this->uuid[2], this->uuid[3],
Expand Down

0 comments on commit b28c6db

Please sign in to comment.