Freak out in a controlled way if this happens.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@482 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Michael Bayne
2007-11-07 03:22:49 +00:00
parent adfd2c4428
commit f338096580
@@ -215,6 +215,11 @@ public class SceneDirector extends BasicDirector
clearScene(); clearScene();
// make the pending scene the active scene // make the pending scene the active scene
if (_pendingData == null) {
log.warning("Aiya! Scene move succeeded but we have no pending data! " +
"[prevId=" + _previousSceneId + "].");
return;
}
_sceneId = _pendingData.sceneId; _sceneId = _pendingData.sceneId;
_pendingData = null; _pendingData = null;