Correct last commit

This commit is contained in:
Tiehuis 2014-12-06 13:00:47 +13:00
parent 44bc1cbe87
commit 3ca10eb8d5

View File

@ -190,7 +190,7 @@ struct gamestate* gamestate_init(struct gameoptions *opt)
//long *grid_back = malloc(opt->grid_width * opt->grid_height * sizeof(long)); //long *grid_back = malloc(opt->grid_width * opt->grid_height * sizeof(long));
//if (!grid_back) goto grid_back_alloc_fail; //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; if (!g->grid) goto grid_alloc_fail;
int i; int i;