(svn r22456) -Codechange: Derive NewGRFSpriteLayout from DrawTileSprites for spritelayouts allocated on the heap, and make use of constructors and destructors.

This commit is contained in:
frosch
2011-05-14 17:25:45 +00:00
parent 3183cb7907
commit 7415b9cca2
8 changed files with 81 additions and 44 deletions

View File

@@ -37,8 +37,7 @@ RandomizedSpriteGroup::~RandomizedSpriteGroup()
TileLayoutSpriteGroup::~TileLayoutSpriteGroup()
{
free((void*)this->dts->seq);
free(this->dts);
delete this->dts;
}
TemporaryStorageArray<int32, 0x110> _temp_store;