Просмотр исходного кода

Merge pull request #1231 from rcmaniac25/fix-orth-camera

Fix Orthographic camera not initializing the listeners on creation
Sean Taylor 12 лет назад
Родитель
Сommit
2fc958424a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      gameplay/src/Camera.cpp

+ 1 - 1
gameplay/src/Camera.cpp

@@ -28,7 +28,7 @@ Camera::Camera(float fieldOfView, float aspectRatio, float nearPlane, float farP
 
 Camera::Camera(float zoomX, float zoomY, float aspectRatio, float nearPlane, float farPlane)
     : _type(ORTHOGRAPHIC), _aspectRatio(aspectRatio), _nearPlane(nearPlane), _farPlane(farPlane),
-      _bits(CAMERA_DIRTY_ALL), _node(NULL)
+	_bits(CAMERA_DIRTY_ALL), _node(NULL), _listeners(NULL)
 {
     // Orthographic camera.
     _zoom[0] = zoomX;