(svn r15555) -Codechange: remove the mallocs + frees for temporary data from loading sprites.

This commit is contained in:
rubidium
2009-02-23 10:50:25 +00:00
parent 2a2ee1fdb9
commit 44821e60eb
5 changed files with 39 additions and 13 deletions

View File

@@ -86,7 +86,7 @@ bool SpriteLoaderGrf::LoadSprite(SpriteLoader::Sprite *sprite, uint8 file_slot,
if (num != 0) return WarnCorruptSprite(file_slot, file_pos, __LINE__);
sprite->data = CallocT<SpriteLoader::CommonPixel>(sprite->width * sprite->height);
sprite->AllocateData(sprite->width * sprite->height);
/* When there are transparency pixels, this format has an other trick.. decode it */
if (type & 0x08) {