mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-09-24 01:06:40 +00:00
chore: make allocating redirect entry work with ptr directly
This commit is contained in:
@@ -355,10 +355,11 @@ namespace
|
||||
return *reinterpret_cast<void**>(&block->m_buffer[blockOffset]);
|
||||
}
|
||||
|
||||
uintptr_t AllocRedirectEntry(void** alias) override
|
||||
uintptr_t AllocRedirectEntry(void* alias) override
|
||||
{
|
||||
// nullptr is always lookup alias 0
|
||||
if (*alias == nullptr)
|
||||
assert(alias);
|
||||
if (alias == nullptr)
|
||||
return 0;
|
||||
|
||||
const auto newIndex = m_pointer_redirect_lookup.size();
|
||||
|
Reference in New Issue
Block a user