diff options
| author | Léo Lam <leo@leolam.fr> | 2021-04-23 12:49:51 +0200 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2021-04-23 12:51:10 +0200 |
| commit | 52196c4b75f84444bca3b9c19302146235bf8f6a (patch) | |
| tree | 1dd24cd8d00e9777397c8172c20db109aabaebe4 /src/KingSystem/Resource | |
| parent | 2015796b8014cdbdd472cb1140361e050ceaf758 (diff) | |
ksys/res: Fix EntryFactory using value initialisation when new'ing
This causes an extra memset to be issued in some cases.
Diffstat (limited to 'src/KingSystem/Resource')
| -rw-r--r-- | src/KingSystem/Resource/resEntryFactory.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/KingSystem/Resource/resEntryFactory.h b/src/KingSystem/Resource/resEntryFactory.h index 611a2122..1ac243f2 100644 --- a/src/KingSystem/Resource/resEntryFactory.h +++ b/src/KingSystem/Resource/resEntryFactory.h @@ -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: |
