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:
Zwelf 2020-05-20 21:21:40 +02:00
parent 3f8bebd7af
commit cd015c5e37
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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