     cameraNode.position = Vector3(-50, 2, -50);
 
     cameraLightNode = cameraNode.CreateChild("CameraLight");
-    cameraLight = cameraLightNode.CreateComponent("Light");
+    Light@ cameraLight = cameraLightNode.CreateComponent("Light");
     cameraLight.lightType = LIGHT_SPOT;
     cameraLight.range = 50;
     cameraLight.color = Color(2, 2, 2);

                testScene.LoadXML(xmlFile);
                // Reacquire camera, as it is part of the scene
                cameraNode = testScene.GetChild("Camera", true);
                cameraLightNode = cameraNode.GetChild("CameraLight");
            }
        }
    }

Node@ cameraNode;
Camera@ camera;
Node@ cameraLightNode;
float yaw = 0.0;
float pitch = 0.0;
float objectangle = 0.0;
