From 3ca10eb8d5492d451650c45a48040331d6a11433 Mon Sep 17 00:00:00 2001 From: Tiehuis Date: Sat, 6 Dec 2014 13:00:47 +1300 Subject: [PATCH] Correct last commit --- src/2048_engine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/2048_engine.c b/src/2048_engine.c index cb0306e..470db61 100644 --- a/src/2048_engine.c +++ b/src/2048_engine.c @@ -190,7 +190,7 @@ struct gamestate* gamestate_init(struct gameoptions *opt) //long *grid_back = malloc(opt->grid_width * opt->grid_height * sizeof(long)); //if (!grid_back) goto grid_back_alloc_fail; - g->grid = malloc(opt->grid_width, sizeof(long*)); + g->grid = malloc(opt->grid_width * sizeof(long*)); if (!g->grid) goto grid_alloc_fail; int i;