summaryrefslogtreecommitdiff
path: root/soh/src/code
diff options
context:
space:
mode:
authorArchez <Archez@users.noreply.github.com>2025-05-17 01:09:23 -0400
committerGitHub <noreply@github.com>2025-05-17 01:09:23 -0400
commit9010b8c540d84b56a0d8944dbc247df7be88bb72 (patch)
treeacce1e700b53298d1eff51c41346df47469ffd8e /soh/src/code
parente673eaefb684c80c2ee0ab2d41a11ae2e4db4e88 (diff)
port over nametag improvements from 2ship (#5160)
Diffstat (limited to 'soh/src/code')
-rw-r--r--soh/src/code/z_actor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/soh/src/code/z_actor.c b/soh/src/code/z_actor.c
index 3ca67ad3b..ac9e4f3f6 100644
--- a/soh/src/code/z_actor.c
+++ b/soh/src/code/z_actor.c
@@ -3466,6 +3466,9 @@ Actor* Actor_Delete(ActorContext* actorCtx, Actor* actor, PlayState* play) {
player = GET_PLAYER(play);
+ // Execute before actor memory is freed
+ GameInteractor_ExecuteOnActorDestroy(actor);
+
dbEntry = ActorDB_Retrieve(actor->id);
if (HREG(20) != 0) {