mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
a bit
proper vending machines like fully, performance
This commit is contained in:
@@ -83,6 +83,20 @@ struct PickupCreateData
|
||||
if (bShouldFreeItemEntryWhenDeconstructed)
|
||||
{
|
||||
// real
|
||||
|
||||
FFortItemEntry::FreeItemEntry(ItemEntry);
|
||||
|
||||
if (bUseFMemoryRealloc)
|
||||
{
|
||||
static void (*FreeOriginal)(void* Original) = decltype(FreeOriginal)(Addresses::Free);
|
||||
|
||||
if (FreeOriginal)
|
||||
FreeOriginal(ItemEntry);
|
||||
}
|
||||
else
|
||||
{
|
||||
VirtualFree(ItemEntry, 0, MEM_RELEASE);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user