summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMegaMech <MegaMech@users.noreply.github.com>2025-07-18 07:20:47 -0600
committerGitHub <noreply@github.com>2025-07-18 07:20:47 -0600
commit5c123911eca7ae2080f16a010f82235b27b746d8 (patch)
treef06009933d209e110ff3a53768405234e5cd8263
parent761dad8f1af92445efc238ebdcbebbd33e0da7fd (diff)
Fix D_802874D8 clear function (#474)
* Update code_80281780.c * Update podium_ceremony_actors.c * Update podium_ceremony_actors.h
-rw-r--r--src/ending/code_80281780.c2
-rw-r--r--src/ending/podium_ceremony_actors.c4
-rw-r--r--src/ending/podium_ceremony_actors.h1
3 files changed, 7 insertions, 0 deletions
diff --git a/src/ending/code_80281780.c b/src/ending/code_80281780.c
index 46a3bd2b3..163cbb21d 100644
--- a/src/ending/code_80281780.c
+++ b/src/ending/code_80281780.c
@@ -95,6 +95,8 @@ void func_802818BC(void) {
void setup_podium_ceremony(void) {
Camera* camera = &cameras[0];
+ clear_D_802874D8_actors();
+
gCurrentCourseId = COURSE_ROYAL_RACEWAY;
SelectPodiumCeremony();
D_800DC5B4 = (u16) 1;
diff --git a/src/ending/podium_ceremony_actors.c b/src/ending/podium_ceremony_actors.c
index 4edfbff87..683d3ee8e 100644
--- a/src/ending/podium_ceremony_actors.c
+++ b/src/ending/podium_ceremony_actors.c
@@ -132,6 +132,10 @@ CeremonyActor* new_actor(ActorInitParams* arg0) {
return actor;
}
+void clear_D_802874D8_actors() {
+ memset(&D_802874D8, 0, sizeof(struct_D_802874D8));
+}
+
u16 random_u16_credits(void) {
u16 temp1, temp2;
diff --git a/src/ending/podium_ceremony_actors.h b/src/ending/podium_ceremony_actors.h
index fb3499c71..0a05e1892 100644
--- a/src/ending/podium_ceremony_actors.h
+++ b/src/ending/podium_ceremony_actors.h
@@ -83,6 +83,7 @@ void func_80280650(void);
void set_initial_position(CeremonyActor*);
CeremonyActor* find_available_entry(void);
CeremonyActor* new_actor(ActorInitParams*);
+void clear_D_802874D8_actors(void);
u16 random_u16_credits(void);
f32 random_float_between_0_and_1(void);
f32 random_who_knows(f32);