mirror of https://github.com/axmolengine/axmol.git
fix invalid native object error
This commit is contained in:
parent
9ed290e64e
commit
cf5f3c321c
|
@ -551,7 +551,7 @@
|
|||
global.GUITestScene = cc.Class.extend({
|
||||
|
||||
runThisTest: function(){
|
||||
if(guiTestScene === null)
|
||||
if(guiTestScene === null || !cc.sys.isObjectValid(guiTestScene))
|
||||
guiTestScene = new listScene;
|
||||
cc.director.runScene(guiTestScene);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue