Skip to content

Commit

Permalink
Fix a Map Editor crash.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 0b48e3ff0ca7dbd33ff15a1404b9ff406df64678
  • Loading branch information
cpojer committed Aug 11, 2024
1 parent 55f1e5d commit 34c7470
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion athena/lib/isPvP.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import MapData from '../MapData.tsx';

export default function isPvP(map: MapData) {
return (
map.active.filter((id) => map.getPlayer(id).isHumanPlayer()).length > 1
map.active.filter((id) => map.maybeGetPlayer(id)?.isHumanPlayer()).length >
1
);
}

0 comments on commit 34c7470

Please sign in to comment.