Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
786
void SpriteCache::ClearSpriteData()
787
{
788
_spritecache_bytes_used -= this->length;
789
this->ptr.reset();
790
}
791
792
void *UniquePtrSpriteAllocator::AllocatePtr(size_t size)
793
{
Callers
4
DupSprite
Function · 0.80
DeleteEntriesFromSpriteCache
Function · 0.80
GfxClearSpriteCache
Function · 0.80
GfxClearFontSpriteCache
Function · 0.80
Calls
1
reset
Method · 0.45
Tested by
no test coverage detected