From 88dd6a205052fbf1d53083eb7e4733a7cf251db1 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sat, 18 Jun 2016 23:31:47 +0100 Subject: [PATCH] Set default values for the colours/alpha in the Colour struct --- source/common/colour.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/common/colour.h b/source/common/colour.h index 8eebe41..93d42a6 100644 --- a/source/common/colour.h +++ b/source/common/colour.h @@ -26,10 +26,10 @@ using namespace std; struct Colour{ - int red; - int blue; - int green; - int alpha; + int red = 0; + int blue = 0; + int green = 0; + int alpha = 255; operator string() { -- 2.39.5