mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-04 06:54:33 +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
|
@ -2682,7 +2682,7 @@ Actor* Actor_Spawn(ActorContext* actorCtx, PlayState* play, s16 actorId, f32 pos
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if (overlayEntry->vramStart == 0) {
|
||||
if (overlayEntry->vramStart == NULL) {
|
||||
if (HREG(20) != 0) {
|
||||
osSyncPrintf("オーバーレイではありません\n"); // "Not an overlay"
|
||||
}
|
||||
|
@ -2894,7 +2894,7 @@ Actor* Actor_Delete(ActorContext* actorCtx, Actor* actor, PlayState* play) {
|
|||
|
||||
ZeldaArena_FreeDebug(actor, "../z_actor.c", 7242);
|
||||
|
||||
if (overlayEntry->vramStart == 0) {
|
||||
if (overlayEntry->vramStart == NULL) {
|
||||
if (HREG(20) != 0) {
|
||||
osSyncPrintf("オーバーレイではありません\n"); // "Not an overlay"
|
||||
}
|
||||
|
@ -3001,7 +3001,7 @@ Actor* func_80032AF0(PlayState* play, ActorContext* actorCtx, Actor** actorPtr,
|
|||
}
|
||||
}
|
||||
|
||||
if (D_8015BBE8 == 0) {
|
||||
if (D_8015BBE8 == NULL) {
|
||||
*actorPtr = D_8015BBEC;
|
||||
} else {
|
||||
*actorPtr = D_8015BBE8;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue