Fixed uninitialized variable error that was causing the clipping plane to be set incorrectly when rendering some stars.

ver1_6_1
Chris Laurel 2008-10-28 02:56:23 +00:00
parent 8b470cca63
commit cd22f3532d
1 changed files with 1 additions and 1 deletions

View File

@ -3611,7 +3611,7 @@ void Renderer::draw(const Observer& observer,
// Account for ellipsoidal objects
float eradius = radius;
if (iter->body != NULL)
if (iter->renderableType == RenderListEntry::RenderableBody)
{
Vec3f semiAxes = iter->body->getSemiAxes();
float minSemiAxis = min(semiAxes.x, min(semiAxes.y, semiAxes.z));