Unverified Commit 424ebc56 authored by Flávio Fernandes's avatar Flávio Fernandes Committed by GitHub
Browse files

Initialize reservedMap in PartyPresenceList (#1134)

parent f3674165
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -44,6 +44,7 @@ func NewPartyPresenceList(maxSize int) *PartyPresenceList {
		presences:     make([]*PartyPresenceListItem, 0, maxSize),
		presenceMap:   make(map[uuid.UUID]string, maxSize),
		presencesRead: &atomic.Value{},
		reservedMap:   make(map[uuid.UUID]struct{}, maxSize),
	}
	m.presencesRead.Store(make([]*PartyPresenceListItem, 0, maxSize))
	return m