mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-23 20:24:12 +01:00
Codechange: Use std::byte for glyph sprite buffer.
This commit is contained in:
committed by
Peter Nelson
parent
c718858999
commit
5585363407
@@ -899,7 +899,7 @@ void *CacheSpriteAllocator::AllocatePtr(size_t mem_req)
|
||||
|
||||
void *UniquePtrSpriteAllocator::AllocatePtr(size_t size)
|
||||
{
|
||||
this->data = std::make_unique<uint8_t[]>(size);
|
||||
this->data = std::make_unique<std::byte[]>(size);
|
||||
return this->data.get();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user