mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-21 22:41:14 +00:00
Fix many missing NULLs (#1389)
* Fix many missing NULLs * Fix a raw actor id in en_horse
This commit is contained in:
parent
78e528d6fb
commit
2f4c25da53
42 changed files with 66 additions and 64 deletions
|
@ -136,7 +136,7 @@ void EfcErupc_Draw(Actor* thisx, PlayState* play) {
|
|||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||
|
||||
if (play->csCtx.state != 0) {
|
||||
if ((play->csCtx.npcActions[1] != 0) && (play->csCtx.npcActions[1]->action == 2)) {
|
||||
if ((play->csCtx.npcActions[1] != NULL) && (play->csCtx.npcActions[1]->action == 2)) {
|
||||
gSPDisplayList(POLY_XLU_DISP++, object_efc_erupc_DL_002570);
|
||||
}
|
||||
}
|
||||
|
@ -146,7 +146,7 @@ void EfcErupc_Draw(Actor* thisx, PlayState* play) {
|
|||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||
if (play->csCtx.state != 0) {
|
||||
CsCmdActorAction* csActorAction = play->csCtx.npcActions[2];
|
||||
if (csActorAction != 0) {
|
||||
if (csActorAction != NULL) {
|
||||
csAction = csActorAction->action;
|
||||
if ((csAction == 2) || (csAction == 3)) {
|
||||
gDPSetPrimColor(POLY_XLU_DISP++, 0x80, 0x80, 255, 255, 200, 255);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue