Ensure we deselect objects correctly

This commit is contained in:
Casper Warden
2023-11-22 11:30:10 +00:00
parent 81264e36c5
commit adc9d54190
3 changed files with 7 additions and 7 deletions

View File

@@ -201,13 +201,13 @@ export class RegionCommands extends CommandsBase
SessionID: this.circuit.sessionID
};
deselectObject.ObjectData = [];
const uuidMap: { [key: string]: GameObject } = {};
const idMap: { [key: number]: GameObject } = {};
for (const obj of objects)
{
const uuidStr = obj.FullID.toString();
if (!uuidMap[uuidStr])
const localID = obj.ID;
if (!idMap[localID])
{
uuidMap[uuidStr] = obj;
idMap[localID] = obj;
deselectObject.ObjectData.push({
ObjectLocalID: obj.ID
});