Closed ZadenRB closed 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.
Using
takes a pointer of the copy of the brigade struct, so later using a reference to that brigade would not match the key.