Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed Nov 22, 2021
2 parents 703b988 + 2487425 commit d54bd1d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/engine/objects.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,12 @@ func (os *Objects) Slice() []*Object {
return os.asarray
}

func (os *Objects) Len() int {
os.rlock()
defer os.runlock()
return len(os.asarray)
}

func (os *Objects) FindByID(id uint32) (o *Object, found bool) {
os.rlock()
o, found = os.idindex[id]
Expand Down

0 comments on commit d54bd1d

Please sign in to comment.