xh пре 9 месеци
родитељ
комит
d654747593
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      game/game_cluster/nodes/game/module/player/actor_player.go

+ 1 - 1
game/game_cluster/nodes/game/module/player/actor_player.go

@@ -91,7 +91,7 @@ func (p *actorPlayer) OnInit() {
 
 	//在线用户定时刷新
 	p.Timer().Add(1*time.Minute, func() {
-		if !p.isOnline {
+		if p.Player != nil {
 			p.Player.InitDaily()
 		}
 	})