(svn r4483) - NewGRF: Dynamically allocate memory for 'real' spritegroups. This removes the limit of 16 loading/unloading states, although will result in less memory usage as most of the time the full fixed allocation wasn't used.

This commit is contained in:
peter1138
2006-04-20 13:33:40 +00:00
parent 62145d16b5
commit 9ed8c6d4ac
3 changed files with 9 additions and 15 deletions

View File

@@ -132,6 +132,8 @@ void UnloadSpriteGroup(SpriteGroup **group_ptr)
for (i = 0; i < rsg->loaded_count; i++) {
if (rsg->loaded[i] != NULL) UnloadSpriteGroup(&rsg->loaded[i]);
}
free(group->g.real.loaded);
free(group->g.real.loading);
free(group);
return;
}