Fix replays array (wow)

This commit is contained in:
Nekobit 2023-09-11 13:09:32 -04:00
parent 6772f1fcd0
commit 26282fef91
1 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,7 @@ struct replay
char* p2;
char* p2code;
int game_state;
} replays[25565] = {0};
}* replays = NULL;
size_t replays_len = 0;
unsigned
@ -135,6 +135,7 @@ recurse_replay_files()
{
if (ep->d_name && ep->d_name[0] != '.')
{
replays = realloc(replays, sizeof(struct replay) * (replays_len+2));
struct replay* rpy = replays + replays_len++;
rpy->filename = strdup(ep->d_name);
// End