Skip to content

Commit

Permalink
fix: win/death emote related server crash bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hsanger committed Mar 4, 2024
1 parent 2280b96 commit 0ae9437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/objects/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,7 @@ export class Player extends BaseGameObject<ObjectCategory.Player> {
this.adrenaline = 0;
this.dirty.items = true;
this.action?.cancel();
if (this.loadout.emotes[4].idString !== "none") this.emote(4);
if (this.loadout.emotes[4]?.idString !== "none") this.emote(4);

this.game.livingPlayers.delete(this);
this.game.fullDirtyObjects.add(this);
Expand Down

0 comments on commit 0ae9437

Please sign in to comment.