diff --git a/src/code/z_actor_dlftbls.c b/src/code/z_actor_dlftbls.c index 735a7f7b3e..23159e7ede 100644 --- a/src/code/z_actor_dlftbls.c +++ b/src/code/z_actor_dlftbls.c @@ -52,6 +52,7 @@ s32 gMaxActorId = 0; static FaultClient sFaultClient; void ActorOverlayTable_LogPrint(void) { +#if OOT_DEBUG ActorOverlay* overlayEntry; u32 i; @@ -63,6 +64,7 @@ void ActorOverlayTable_LogPrint(void) { overlayEntry->vramStart, overlayEntry->vramEnd, overlayEntry->loadedRamAddr, &overlayEntry->initInfo->id, overlayEntry->name != NULL ? overlayEntry->name : "?"); } +#endif } void ActorOverlayTable_FaultPrint(void* arg0, void* arg1) { @@ -80,7 +82,7 @@ void ActorOverlayTable_FaultPrint(void* arg0, void* arg1) { if (overlayEntry->loadedRamAddr != NULL) { FaultDrawer_Printf("%3d %08x-%08x %3d %s\n", i, overlayEntry->loadedRamAddr, (uintptr_t)overlayEntry->loadedRamAddr + overlaySize, overlayEntry->numLoaded, - overlayEntry->name != NULL ? overlayEntry->name : ""); + (OOT_DEBUG && overlayEntry->name != NULL) ? overlayEntry->name : ""); } } }