summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2021-04-23 12:49:51 +0200
committerLéo Lam <leo@leolam.fr>2021-04-23 12:51:10 +0200
commit52196c4b75f84444bca3b9c19302146235bf8f6a (patch)
tree1dd24cd8d00e9777397c8172c20db109aabaebe4 /src
parent2015796b8014cdbdd472cb1140361e050ceaf758 (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')
-rw-r--r--src/KingSystem/Resource/resEntryFactory.h2
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: