fix invalid native object error

This commit is contained in:
jianglong0156 2015-05-21 18:10:00 +08:00
parent 9ed290e64e
commit cf5f3c321c
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}