Skip to content

Commit

Permalink
fix: add log msg when player is destroyed
Browse files Browse the repository at this point in the history
  • Loading branch information
iWas-Coder committed Apr 27, 2024
1 parent 8640ee7 commit ca944e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sk_player.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ sk_player sk_player_create(i8 lobby_id, i8 lobby_slot_idx, sk_player_kind kind,
void sk_player_destroy(sk_player *p) {
sk_weapon_destroy(&p->weapon);
UnloadModel(p->model);
SK_LOG_INFO("sk_player_destroy :: destroyed player (%s)", p->id.value);
*p = (sk_player) {0};
p = 0;
}
Expand Down

0 comments on commit ca944e1

Please sign in to comment.