diff options
Diffstat (limited to 'src/spritecache.cpp')
-rw-r--r-- | src/spritecache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spritecache.cpp b/src/spritecache.cpp index f3ea8a1e4..d7f7a2b5a 100644 --- a/src/spritecache.cpp +++ b/src/spritecache.cpp @@ -152,7 +152,7 @@ static void* ReadSprite(SpriteCache *sc, SpriteID id) if (!sprite_loader.LoadSprite(&sprite, file_pos)) return NULL; if (id == 142) sprite.height = 10; // Compensate for a TTD bug - sc->ptr = BlitterFactoryBase::GetCurrentBlitter()->Encode(&sprite); + sc->ptr = BlitterFactoryBase::GetCurrentBlitter()->Encode(&sprite, &AllocSprite); free(sprite.data); return sc->ptr; |