瀏覽代碼

修复指针为空判断

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() {
 	p.Timer().Add(1*time.Minute, func() {
-		if !p.isOnline {
+		if p.Player != nil {
 			p.Player.InitDaily()
 			p.Player.InitDaily()
 		}
 		}
 	})
 	})