Fix player creating

pull/2/head
Nakidai 2023-10-29 23:35:03 +03:00
parent fac72a00ed
commit 75fb0965f1
Signed by untrusted user who does not match committer: nakidai
GPG Key ID: 914675D395210A97
1 changed files with 4 additions and 4 deletions

View File

@ -6,14 +6,14 @@ Player *playerCreate(Direction direction, int x, int y, int score)
Player *player = (Player *)malloc(sizeof(Player));
PlayerNode *head = (PlayerNode *)malloc(sizeof(PlayerNode));
head->x = x;
head->y = y;
head->next = NULL;
player->tail = head;
player->head = head;
player->score = score;
player->direction = direction;
head->x = x;
head->y = y;
head->next = NULL;
}
void playerFree(Player *player)