summaryrefslogtreecommitdiff
path: root/soh/src/code
diff options
context:
space:
mode:
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) {