summaryrefslogtreecommitdiff
path: root/src/newgrf_spritegroup.cpp
diff options
context:
space:
mode:
authormaedhros <maedhros@openttd.org>2007-03-19 11:27:30 +0000
committermaedhros <maedhros@openttd.org>2007-03-19 11:27:30 +0000
commit209101391abfaf901bfc68c83c79bf8c9865b0bb (patch)
tree8ccaccab74c6399452d6ff3f09d5c94335516a62 /src/newgrf_spritegroup.cpp
parent3d3d8d7c47f3fb98abeefe943f7c94f4485f3dec (diff)
downloadopenttd-209101391abfaf901bfc68c83c79bf8c9865b0bb.tar.xz
(svn r9315) -Merge: The newhouses branch. With this merge comes almost complete support for
the newhouses grf specs, so all newhouses grfs will be playable in the game. Many thanks to everyone who contributed code and ideas, and all the testers who found things we missed.
Diffstat (limited to 'src/newgrf_spritegroup.cpp')
-rw-r--r--src/newgrf_spritegroup.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/newgrf_spritegroup.cpp b/src/newgrf_spritegroup.cpp
index b73377dd0..fcde3cc28 100644
--- a/src/newgrf_spritegroup.cpp
+++ b/src/newgrf_spritegroup.cpp
@@ -8,6 +8,7 @@
#include "newgrf_callbacks.h"
#include "newgrf_spritegroup.h"
#include "date.h"
+#include "sprite.h"
static void SpriteGroupPoolCleanBlock(uint start_item, uint end_item);
@@ -33,6 +34,11 @@ static void DestroySpriteGroup(SpriteGroup *group)
free((SpriteGroup**)group->g.random.groups);
break;
+ case SGT_TILELAYOUT:
+ free((void*)group->g.layout.dts->seq);
+ free(group->g.layout.dts);
+ break;
+
default:
break;
}