diff options
| author | Tal Hayon <talhayon1@gmail.com> | 2022-04-17 20:44:10 +0300 |
|---|---|---|
| committer | Tal Hayon <talhayon1@gmail.com> | 2022-04-17 20:44:10 +0300 |
| commit | 4b4372dbd7c7d966246020cedf43ed4b28f75bcd (patch) | |
| tree | c99ed8710b39a239d3f601aa02596ed6b26ee12d /src/object/heartContainer.c | |
| parent | 1c6bc876b5fd15d3703954a50acab9169c7562f9 (diff) | |
Put const data in heartContainer
Diffstat (limited to 'src/object/heartContainer.c')
| -rw-r--r-- | src/object/heartContainer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/object/heartContainer.c b/src/object/heartContainer.c index b195e6f6..9d02d53f 100644 --- a/src/object/heartContainer.c +++ b/src/object/heartContainer.c @@ -17,7 +17,7 @@ static void (*const gHeartContainerActions[])(Entity*) = { sub_0808E764, }; -extern Hitbox gUnk_08121C58; +const Hitbox3D gUnk_08121C58 = { 0, -3, { 5, 3, 3, 5 }, 6, 6, 12, {} }; void HeartContainer(Entity* this) { gHeartContainerActions[this->action](this); @@ -30,7 +30,7 @@ static void sub_0808E6A0(Entity* this) { this->action = 1; this->type = 0x62; this->spriteSettings.draw = 0; - this->hitbox = &gUnk_08121C58; + this->hitbox = (Hitbox*)&gUnk_08121C58; this->collisionLayer = 3; this->updatePriority = PRIO_NO_BLOCK; } |
