From 730a89ddc52c2ad89bfeb51636d2ac100a6055af Mon Sep 17 00:00:00 2001 From: D G Turner Date: Mon, 30 Sep 2019 03:43:56 +0100 Subject: GRAPHICS: Add Default Constructor For Palette Structure This is used for outPalette in sci/graphics/palette32 code without calling through the nominal constructor which leaves the various fields _possibly_ uninitialised and thus triggers various compiler warnings. Adding a default constructor fixes the root cause. --- graphics/cursorman.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'graphics') diff --git a/graphics/cursorman.h b/graphics/cursorman.h index 68f27b18f5..d4ec940b60 100644 --- a/graphics/cursorman.h +++ b/graphics/cursorman.h @@ -207,6 +207,8 @@ private: bool _disabled; + Palette() : _data(0), _start(0), _num(0), _size(0), _disabled(false) {} + Palette(const byte *colors, uint start, uint num); ~Palette(); }; -- cgit v1.2.3