From 9ed8c6d4acea5c41246d3fa54301d4a0cc814985 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Thu, 20 Apr 2006 13:33:40 +0000 Subject: (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. --- sprite.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sprite.c') diff --git a/sprite.c b/sprite.c index 2d76b7527..47d0c1c8b 100644 --- a/sprite.c +++ b/sprite.c @@ -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; } -- cgit v1.2.3-54-g00ecf