From be033db4a2738414f0b18a286c3e82dda9219f5c Mon Sep 17 00:00:00 2001 From: lemon-sherbet Date: Tue, 18 Aug 2020 00:54:37 +0200 Subject: [PATCH] fix landing particles appearing on (0,0) on spike death --- celeste.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/celeste.c b/celeste.c index 879884d..0d96404 100644 --- a/celeste.c +++ b/celeste.c @@ -535,9 +535,9 @@ static void PLAYER_update(OBJ* this) { do_kill_player = true; } if (do_kill_player) { - kill_player(this); - //switch to dummy copy + //switch to dummy copy, need to copy before destroying the object player_dummy_copy = *this; + kill_player(this); this = &player_dummy_copy; }