|
@@ -175,6 +175,8 @@ int create_game(char* name, char* map) {
|
|
|
game[index].player[i] = malloc(sizeof (Player));
|
|
|
game[index].player[i]->ini = false;
|
|
|
}
|
|
|
+ game[index].object = malloc(sizeof(Object));
|
|
|
+ object_ini(game[index].object);
|
|
|
pthread_mutex_unlock(&gameMutex[index]);
|
|
|
//Retourne la position de la partie dans le tableau
|
|
|
nbGame++;
|