From 83794793e31ca208aca4661d70bdad813eb7f7dd Mon Sep 17 00:00:00 2001 From: coco875 <59367621+coco875@users.noreply.github.com> Date: Sun, 13 Jul 2025 01:17:05 +0000 Subject: [PATCH] Update code_8006E9C0.c (#450) --- src/code_8006E9C0.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/code_8006E9C0.c b/src/code_8006E9C0.c index 12e00edcd..690f44e98 100644 --- a/src/code_8006E9C0.c +++ b/src/code_8006E9C0.c @@ -524,8 +524,7 @@ void init_cloud_object(s32 objectIndex, s32 arg1, CloudData* arg2) { temp_v0->unk_09E = arg2->posY; temp_v0->sizeScaling = (f32) arg2->scalePercent / 100.0; if (GameEngine_ResourceGetTexTypeByName(CM_GetProps()->CloudTexture) != 1) { - int width = ResourceGetTexWidthByName(CM_GetProps()->CloudTexture); - temp_v0->activeTexture = LOAD_ASSET_RAW(CM_GetProps()->CloudTexture) + (arg2->subType * width * width * 1); + temp_v0->activeTexture = ((u8*) LOAD_ASSET_RAW(CM_GetProps()->CloudTexture)) + (arg2->subType * 1024); func_80073404(objectIndex, 0x40U, 0x20U, D_0D005FB0); } else { temp_v0->activeTexture = CM_GetProps()->CloudTexture;