codefordenver / codefordenver-scout

Code For Denver's Discord Bot
3 stars 0 forks source link

Updates to avoid pointer issues #94

Closed ZadenRB closed 4 years ago

ZadenRB commented 4 years ago

Using

for _, brigade := range global.Brigades {
calendars[&brigade] = cal.NewCalendar()
}

takes a pointer of the copy of the brigade struct, so later using a reference to that brigade would not match the key.