mirror of
https://github.com/zeldaret/botw
synced 2026-05-25 15:25:09 -04:00
ksys/res: Fix EntryFactory using value initialisation when new'ing
This causes an extra memset to be issued in some cases.
This commit is contained in:
@@ -40,7 +40,7 @@ public:
|
||||
sead::DirectResource* newResource_(sead::Heap* heap_, s32 alignment) override {
|
||||
sead::Heap* heap = util::getHeapOrCurrentHeap(heap_);
|
||||
sead::ScopedCurrentHeapSetter setter{heap};
|
||||
return new (heap, alignment, std::nothrow_t{}) T{};
|
||||
return new (heap, alignment, std::nothrow_t{}) T;
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user