Skip to content

修正调用cc.game.restart后刷新结点树时找不到场景导致的空引用报错#48

Open
shanegxxiao wants to merge 1 commit intopotato47:masterfrom
shanegxxiao:master
Open

修正调用cc.game.restart后刷新结点树时找不到场景导致的空引用报错#48
shanegxxiao wants to merge 1 commit intopotato47:masterfrom
shanegxxiao:master

Conversation

@shanegxxiao
Copy link

creator3.8.6调用cc.game.restart()后,存在cc.director.getScene()为空的情况,这个pr做了空引用保护

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant