mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix storing incomplete game uuid on /save
Previously the formatted game uuid was cut off after 15 bytes.
Therefore only 52 out of 128 bit of the uuid were stored.
introduced in 69fd7f1767
This commit is contained in:
parent
3f8bebd7af
commit
cd015c5e37
|
@ -23,6 +23,7 @@ struct CUuid
|
||||||
|
|
||||||
CUuid RandomUuid();
|
CUuid RandomUuid();
|
||||||
CUuid CalculateUuid(const char *pName);
|
CUuid CalculateUuid(const char *pName);
|
||||||
|
// The buffer length should be at least UUID_MAXSTRSIZE.
|
||||||
void FormatUuid(CUuid Uuid, char *pBuffer, unsigned BufferLength);
|
void FormatUuid(CUuid Uuid, char *pBuffer, unsigned BufferLength);
|
||||||
|
|
||||||
struct CName
|
struct CName
|
||||||
|
|
|
@ -85,7 +85,7 @@ private:
|
||||||
int m_HookTick;
|
int m_HookTick;
|
||||||
int m_HookState;
|
int m_HookState;
|
||||||
|
|
||||||
char aGameUuid[16];
|
char aGameUuid[UUID_MAXSTRSIZE];
|
||||||
};
|
};
|
||||||
|
|
||||||
class CSaveTeam
|
class CSaveTeam
|
||||||
|
|
Loading…
Reference in a new issue