Commits

BaoLinden committed d608dc8

fix for SH-1530: Viewer crash in LLSurface::getWaterHeight

  • Participants
  • Parent commits 8191bb9

Comments (0)

Files changed (1)

indra/newview/llviewercamera.cpp

 
 BOOL LLViewerCamera::cameraUnderWater() const
 {
+	if(!gAgent.getRegion())
+	{
+		return FALSE ;
+	}
 	return getOrigin().mV[VZ] < gAgent.getRegion()->getWaterHeight();
 }