mirror of https://github.com/zeldaret/botw.git
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:
parent
2015796b80
commit
52196c4b75
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue