Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Commit

Permalink
fix landing particles appearing on (0,0) on spike death
Browse files Browse the repository at this point in the history
  • Loading branch information
lemon32767 committed Aug 17, 2020
1 parent 7201e3e commit be033db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions celeste.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit be033db

Please sign in to comment.