diff --git a/src/plateau.c b/src/plateau.c index be645f2..cb45f47 100644 --- a/src/plateau.c +++ b/src/plateau.c @@ -1,7 +1,7 @@ #include "../includes/plateau.h" Table *generate_table(GLuint width, GLuint height, Pos origin, Uint32 color) { - Table *table = malloc(sizeof(Table *)); + Table *table = malloc(sizeof(Table)); assert(table != NULL); table->width = width;