Skip to content

Commit d282424

Browse files
authored
Merge pull request #17 from C6H15/fix/observer-disconnect-wrong-table
Fix disconnectObserverFromGroup using wrong lookup table
2 parents abfa1a1 + 591233e commit d282424

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Classes/Observer.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ local function disconnectObserverFromGroup(observerId: number, group: Types.Inte
7272
end
7373

7474
local stillTracked = false
75-
for groupId in (State.entityToObservers[entity] or {}) do
75+
for groupId in State.entityToGroups[entity] do
7676
if State.groupToObservers[groupId] and State.groupToObservers[groupId][observerId] then
7777
stillTracked = true
7878
break

0 commit comments

Comments
 (0)