Match _create()

This commit is contained in:
SuperDude88
2023-09-13 22:17:10 -04:00
parent a8e8fe3bb0
commit 5e4c71f7ac
2 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -14,6 +14,6 @@ void dead();
void chkDead();
void setLoadError();
int CheckItemCreateHeap(fopAc_ac_c*);
s32 CheckFieldItemCreateHeap(fopAc_ac_c*);
int CheckFieldItemCreateHeap(fopAc_ac_c*);
#endif /* D_A_ITEMBASE_STATIC_H */
+3 -4
View File
@@ -205,7 +205,6 @@ static int daShopItem_Create(void* i_this) {
}
int daShopItem_c::_create() {
/* Nonmatching */
fopAcM_SetupActor(this, daShopItem_c);
m_itemNo = fopAcM_GetParamBit(this, 0, 8);
@@ -237,7 +236,7 @@ int daShopItem_c::_create() {
}
}
else if(type == 1 || (type == 0 && mModelType[m_itemNo] == 0x01)) {
if(fopAcM_entrySolidHeap(this, &CheckItemCreateHeap, dItem_data::getFieldHeapSize(m_itemNo)) == 0) {
if(fopAcM_entrySolidHeap(this, &CheckFieldItemCreateHeap, dItem_data::getFieldHeapSize(m_itemNo)) == 0) {
return cPhs_ERROR_e;
}
}
@@ -246,9 +245,9 @@ int daShopItem_c::_create() {
return cPhs_ERROR_e;
}
}
}
CreateInit();
CreateInit();
}
}
return result;