Name:
Anonymous
2010-10-13 22:41
int i;
char **x = malloc(sizeof(char *) *600);
for(i=0;i<600;i++)
x[i] = malloc(sizeof(char) * 500);
//do some work
for(i=0;i<600;i++)
free(Counter[i]); //error
free(Counter);
what did i do wrong?
Name:
Anonymous
2010-10-15 0:28
>>23
as i stated above i solved the issue. Here's the whole method if anyone cares
http://pastebin.com/bKbpG5tK C version
http://pastebin.com/CtdaKcEC Lua version
I still need to fix up the C version though because it generates really shitty terrain compared to the Lua version which works great when i embed it.