This commit is contained in:
hahwu 2025-10-22 15:48:35 +08:00
parent e97c46a09f
commit 2af5bff831

View File

@ -153,9 +153,12 @@ type LogInfo struct {
func (f *FriendMod) InitData() { func (f *FriendMod) InitData() {
if f.FriendList == nil { if f.FriendList == nil {
f.AddActLog(ACT_LOG_TYPE_FIRST_LOGIN, "")
f.FriendList = make(map[int]struct{}) f.FriendList = make(map[int]struct{})
} }
if len(f.ActivityLog) == 0 {
f.ActivityLog = make([]*ActLogInfo, 0)
f.AddActLog(ACT_LOG_TYPE_FIRST_LOGIN, "")
}
if f.ApplyList == nil { if f.ApplyList == nil {
f.ApplyList = make(map[int]int64) f.ApplyList = make(map[int]int64)
} }