From 49cdf50705bc6b4358f7df6c10d4cef2ea03c498 Mon Sep 17 00:00:00 2001 From: Baoulettes Date: Fri, 20 May 2022 16:05:43 +0200 Subject: [PATCH] Add var init and now it will build --- soh/src/code/z_lifemeter.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/soh/src/code/z_lifemeter.c b/soh/src/code/z_lifemeter.c index 8677ce76f..e06ae27d6 100644 --- a/soh/src/code/z_lifemeter.c +++ b/soh/src/code/z_lifemeter.c @@ -305,10 +305,12 @@ void HealthMeter_Draw(GlobalContext* globalCtx) { f32 temp4; InterfaceContext* interfaceCtx = &globalCtx->interfaceCtx; GraphicsContext* gfxCtx = globalCtx->state.gfxCtx; + s16 MaxHeartsCount = gSaveContext.healthCapacity; + s16 HealthNow = gSaveContext.health; Vtx* sp154 = interfaceCtx->beatingHeartVtx; - s32 curHeartFraction = gSaveContext.health % 0x10; - s16 totalHeartCount = gSaveContext.healthCapacity / 0x10; - s16 fullHeartCount = gSaveContext.health / 0x10; + s32 curHeartFraction = HealthNow % 0x10; + s16 totalHeartCount = MaxHeartsCount / 0x10; + s16 fullHeartCount = HealthNow / 0x10; s32 pad2; f32 sp144 = interfaceCtx->unk_22A * 0.1f; s32 curCombineModeSet = 0;