MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / ClearSpriteData

Method ClearSpriteData

src/spritecache.cpp:786–790  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

784}
785
786void SpriteCache::ClearSpriteData()
787{
788 _spritecache_bytes_used -= this->length;
789 this->ptr.reset();
790}
791
792void *UniquePtrSpriteAllocator::AllocatePtr(size_t size)
793{

Callers 4

DupSpriteFunction · 0.80
GfxClearSpriteCacheFunction · 0.80
GfxClearFontSpriteCacheFunction · 0.80

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected