mirror of
https://github.com/zeldaret/tww.git
synced 2026-06-12 13:34:46 -04:00
Match _create()
This commit is contained in:
@@ -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 */
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user