diff options
author | peter1138 <peter1138@openttd.org> | 2006-04-20 13:33:40 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-04-20 13:33:40 +0000 |
commit | 9ed8c6d4acea5c41246d3fa54301d4a0cc814985 (patch) | |
tree | a4293081de1ea050c6764d3a8961ef11264725aa /sprite.c | |
parent | 62145d16b55aaf13451f7c6595d4675ff0499b47 (diff) | |
download | openttd-9ed8c6d4acea5c41246d3fa54301d4a0cc814985.tar.xz |
(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.
Diffstat (limited to 'sprite.c')
-rw-r--r-- | sprite.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |