Revert "Isolate JKRHeap operator overloads" (#39)

This commit is contained in:
TakaRikka
2026-03-06 19:49:35 -08:00
committed by GitHub
parent fa47658844
commit 3623b27f37
630 changed files with 3349 additions and 3452 deletions
+3 -3
View File
@@ -188,7 +188,7 @@ void JAIStream::die_JAIStream_() {
for (int i = 0; i < NUM_CHILDREN; i++) {
if (children_[i] != NULL) {
JKR_DELETE(children_[i]);
delete children_[i];
children_[i] = NULL;
}
}
@@ -249,7 +249,7 @@ s32 JAIStream::getNumChild() const {
JAISoundChild* JAIStream::getChild(int index) {
if (children_[index] == NULL) {
children_[index] = JKR_NEW JAISoundChild();
children_[index] = new JAISoundChild();
if (children_[index] == NULL) {
JUT_WARN(370, "%s", "JASPoolAllocObject::<JAISoundChild>::operator new failed .\n")
}
@@ -259,7 +259,7 @@ JAISoundChild* JAIStream::getChild(int index) {
void JAIStream::releaseChild(int index) {
if (children_[index] != NULL) {
JKR_DELETE(children_[index]);
delete children_[index];
children_[index] = NULL;
}
}