Merge pull request #55 from oglinuk/develop-trophyId-fix

`tophyId` fix
This commit is contained in:
Stephen J Sweeney 2021-12-06 21:41:23 +00:00 committed by GitHub
commit 7023a48723
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -426,7 +426,8 @@ void awardStatsTrophies(void)
void awardCampaignTrophies(void)
{
char trophyId[MAX_NAME_LENGTH];
/* add 9 to MAX_NAME_LENGTH to account for "CAMPAIGN_" */
char trophyId[MAX_NAME_LENGTH+9];
char name[MAX_NAME_LENGTH];
int i, len;
StarSystem *starSystem;