mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-25 09:39:00 -05:00
Fixes potential issue with if statement.
This commit is contained in:
parent
10c05892bf
commit
3a67e2a806
@ -510,8 +510,10 @@ void EnItem00_Init(Actor* thisx, GlobalContext* globalCtx) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!Actor_HasParent(&this->actor, globalCtx)) {
|
if (!Actor_HasParent(&this->actor, globalCtx)) {
|
||||||
if (!gSaveContext.n64ddFlag && getItemId != GI_NONE) {
|
if (!gSaveContext.n64ddFlag) {
|
||||||
func_8002F554(&this->actor, globalCtx, getItemId);
|
if (getItemId != GI_NONE) {
|
||||||
|
func_8002F554(&this->actor, globalCtx, getItemId);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
getItem = Randomizer_GetRandomizedItem(getItemId, this->actor.id, this->ogParams, globalCtx->sceneNum);
|
getItem = Randomizer_GetRandomizedItem(getItemId, this->actor.id, this->ogParams, globalCtx->sceneNum);
|
||||||
GiveItemEntryFromActorWithFixedRange(&this->actor, globalCtx, getItem);
|
GiveItemEntryFromActorWithFixedRange(&this->actor, globalCtx, getItem);
|
||||||
|
Loading…
Reference in New Issue
Block a user