mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-18 20:57:46 -04:00
Fix multiple classes being inappropriately zero-initialized via JKR_NEW* (#70)
This might also fix #71 and #72.
This commit is contained in:
@@ -172,7 +172,7 @@ bool JUTCacheFont::internal_initiate(ResFONT const* p_fontRes, void* param_1, u3
|
||||
}
|
||||
|
||||
bool JUTCacheFont::allocArea(void* cacheBuffer, u32 param_1, JKRHeap* heap) {
|
||||
mInf1Ptr = (ResFONT::INF1*)JKR_NEW_ARGS (heap, 0) ResFONT();
|
||||
mInf1Ptr = (ResFONT::INF1*)JKR_NEW_ARGS (heap, 0) ResFONT;
|
||||
if (mInf1Ptr == NULL) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -401,7 +401,7 @@ JUTConsoleManager* JUTConsoleManager::createManager(JKRHeap* pHeap) {
|
||||
pHeap = JKRGetCurrentHeap();
|
||||
}
|
||||
|
||||
sManager = JKR_NEW_ARGS (pHeap, 0) JUTConsoleManager();
|
||||
sManager = JKR_NEW_ARGS (pHeap, 0) JUTConsoleManager;
|
||||
return sManager;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user