Add var init and now it will build

This commit is contained in:
Baoulettes 2022-05-20 16:05:43 +02:00 committed by GitHub
commit 49cdf50705
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -305,10 +305,12 @@ void HealthMeter_Draw(GlobalContext* globalCtx) {
f32 temp4; f32 temp4;
InterfaceContext* interfaceCtx = &globalCtx->interfaceCtx; InterfaceContext* interfaceCtx = &globalCtx->interfaceCtx;
GraphicsContext* gfxCtx = globalCtx->state.gfxCtx; GraphicsContext* gfxCtx = globalCtx->state.gfxCtx;
s16 MaxHeartsCount = gSaveContext.healthCapacity;
s16 HealthNow = gSaveContext.health;
Vtx* sp154 = interfaceCtx->beatingHeartVtx; Vtx* sp154 = interfaceCtx->beatingHeartVtx;
s32 curHeartFraction = gSaveContext.health % 0x10; s32 curHeartFraction = HealthNow % 0x10;
s16 totalHeartCount = gSaveContext.healthCapacity / 0x10; s16 totalHeartCount = MaxHeartsCount / 0x10;
s16 fullHeartCount = gSaveContext.health / 0x10; s16 fullHeartCount = HealthNow / 0x10;
s32 pad2; s32 pad2;
f32 sp144 = interfaceCtx->unk_22A * 0.1f; f32 sp144 = interfaceCtx->unk_22A * 0.1f;
s32 curCombineModeSet = 0; s32 curCombineModeSet = 0;