From f336c6db87be04903c0a92ab0c749bfe290bb5f0 Mon Sep 17 00:00:00 2001 From: scrawl Date: Thu, 29 Oct 2015 00:51:35 +0100 Subject: [PATCH] Fix LightSource crash --- components/sceneutil/lightmanager.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/sceneutil/lightmanager.hpp b/components/sceneutil/lightmanager.hpp index 3e0329c8b..c2a1779ed 100644 --- a/components/sceneutil/lightmanager.hpp +++ b/components/sceneutil/lightmanager.hpp @@ -76,7 +76,7 @@ namespace SceneUtil struct LightSourceTransform { - LightSource* mLightSource; + osg::ref_ptr mLightSource; osg::Matrix mWorldMatrix; }; @@ -84,7 +84,7 @@ namespace SceneUtil struct LightSourceViewBound { - LightSource* mLightSource; + osg::ref_ptr mLightSource; osg::BoundingSphere mViewBound; };