moved references to globalThis

This commit is contained in:
RyanGuild 2024-10-22 15:23:20 -04:00
parent be168b11e1
commit 7903cfcd65
5 changed files with 6 additions and 6 deletions

View file

@ -286,7 +286,7 @@ window.BurgsAndStates = (() => {
const {cells, states, cultures, burgs} = pack;
cells.state = cells.state || new Uint16Array(cells.i.length);
const queue = new PriorityQueue({comparator: (a, b) => a.p - b.p});
const queue = new globalThis.PriorityQueue({comparator: (a, b) => a.p - b.p});
const cost = [];
const globalGrowthRate = byId("growthRate").valueAsNumber || 1;