diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp
index cf49cd2589d3483f6048cc3d4e2bc9b32f3f9227..d5b663b6cdefc6d0e7349bf7876ee3cce1a2ae75 100755
--- a/indra/newview/llvoavatar.cpp
+++ b/indra/newview/llvoavatar.cpp
@@ -1399,7 +1399,7 @@ void LLVOAvatar::renderBones()
         LLGLDepthTest normal_depth(GL_TRUE);
 
         // Unoccluded bone portions
-        if (sc == LLJoint::SupportCategory::SUPPORT_BASE)
+        if (sc == LLJoint::SUPPORT_BASE)
         {
             gGL.diffuseColor3f( 1.0f, 0.5f, 0.5f );
         }
@@ -1415,7 +1415,7 @@ void LLVOAvatar::renderBones()
         LLGLDepthTest depth_under(GL_TRUE, GL_FALSE, GL_GREATER);
 
         // Unoccluded bone portions
-		if (sc == LLJoint::SupportCategory::SUPPORT_BASE)
+		if (sc == LLJoint::SUPPORT_BASE)
         {
             gGL.diffuseColor3f( 1.0f, 0.0f, 0.0f );
         }