From 593e2af79af57b14b703db0eab0b873d67ef44de Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 22 Sep 2006 19:51:51 +0000 Subject: [PATCH] fix "RageColor x = 0" silently compiles and crashes --- stepmania/src/RageTypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/RageTypes.h b/stepmania/src/RageTypes.h index 73622b229f..e8b3314903 100644 --- a/stepmania/src/RageTypes.h +++ b/stepmania/src/RageTypes.h @@ -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