소스 검색

修复指针为空判断

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()
 		}
 	})