fix "RageColor x = 0" silently compiles and crashes

This commit is contained in:
Glenn Maynard
2006-09-22 19:51:51 +00:00
parent 1f5114b193
commit 593e2af79a
+1 -1
View File
@@ -100,7 +100,7 @@ struct RageColor
{
public:
RageColor() : r(0), g(0), b(0), a(0) {}
RageColor( const float * f ) { r=f[0]; g=f[1]; b=f[2]; a=f[3]; }
explicit RageColor( const float * f ) { r=f[0]; g=f[1]; b=f[2]; a=f[3]; }
RageColor( float r1, float g1, float b1, float a1 ) { r=r1; g=g1; b=b1; a=a1; }
// casting