diff --git a/src/Core/HeadUpDisplay.m b/src/Core/HeadUpDisplay.m index 3a170b2..549cbf4 100644 --- a/src/Core/HeadUpDisplay.m +++ b/src/Core/HeadUpDisplay.m @@ -2867,14 +2867,14 @@ static OOPolygonSprite *IconForMissileRole(NSString *role) if (alpha > 0.0f) { NSUInteger cueColorIndex = [target isWormhole] ? OO_RETICLE_COLOR_WORMHOLE : OO_RETICLE_COLOR_TARGET; - GLfloat clear_color[4] = {[[_reticleColors objectAtIndex:cueColorIndex] redComponent], - [[_reticleColors objectAtIndex:cueColorIndex] greenComponent], - [[_reticleColors objectAtIndex:cueColorIndex] blueComponent], + GLfloat clear_color[4] = {[(OOColor*)[_reticleColors objectAtIndex:cueColorIndex] redComponent], + [(OOColor*)[_reticleColors objectAtIndex:cueColorIndex] greenComponent], + [(OOColor*)[_reticleColors objectAtIndex:cueColorIndex] blueComponent], 0.0f}; - GLfloat directionCueColorArray[4] = {[[_reticleColors objectAtIndex:cueColorIndex] redComponent], - [[_reticleColors objectAtIndex:cueColorIndex] greenComponent], - [[_reticleColors objectAtIndex:cueColorIndex] blueComponent], - [[_reticleColors objectAtIndex:cueColorIndex] alphaComponent]}; + GLfloat directionCueColorArray[4] = {[(OOColor*)[_reticleColors objectAtIndex:cueColorIndex] redComponent], + [(OOColor*)[_reticleColors objectAtIndex:cueColorIndex] greenComponent], + [(OOColor*)[_reticleColors objectAtIndex:cueColorIndex] blueComponent], + [(OOColor*)[_reticleColors objectAtIndex:cueColorIndex] alphaComponent]}; drawPos.z = 0.0f; // flatten vector drawPos = vector_normal(drawPos); OOGLBEGIN(GL_LINE_STRIP);