Skip to content

Commit

Permalink
server: Fix undefined IHasDamage instance bug
Browse files Browse the repository at this point in the history
  • Loading branch information
0xVector committed Sep 9, 2024
1 parent df9a3d1 commit 8e78669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/implementation/interfaces/has-damage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ export interface IHasDamage {
}

export function isIHasDamage(obj: any): obj is IHasDamage {
return obj.DAMAGE !== undefined;
return obj && obj.DAMAGE !== undefined;
}

0 comments on commit 8e78669

Please sign in to comment.