summaryrefslogtreecommitdiff
path: root/src/code_8006E9C0.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/code_8006E9C0.c')
-rw-r--r--src/code_8006E9C0.c3
1 files changed, 1 insertions, 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;