Skip to content

Commit

Permalink
Fix Dispatch.AddListener (#424)
Browse files Browse the repository at this point in the history
I noticed that my listeners which were added to an initially empty Dispatch were not being notified. This fixes it.
  • Loading branch information
g-getsov authored Aug 29, 2024
1 parent 565758b commit ae3d7cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion listener/dispatch.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (l *Dispatch) AddListener(ls ecs.Listener) {
l.listeners = append(l.listeners, ls)
l.events |= ls.Subscriptions()

cmp := l.Components()
cmp := ls.Components()
if cmp == nil {
l.hasComponents = false
} else {
Expand Down

0 comments on commit ae3d7cf

Please sign in to comment.