diff options
author | D G Turner | 2019-09-30 03:43:56 +0100 |
---|---|---|
committer | D G Turner | 2019-09-30 03:46:30 +0100 |
commit | 730a89ddc52c2ad89bfeb51636d2ac100a6055af (patch) | |
tree | c1562bc644d1657dd94e1dbd45da753a45bd691e | |
parent | 420cbaf8b0bcbc13fd4fa52e01adc27376156599 (diff) | |
download | scummvm-rg350-730a89ddc52c2ad89bfeb51636d2ac100a6055af.tar.gz scummvm-rg350-730a89ddc52c2ad89bfeb51636d2ac100a6055af.tar.bz2 scummvm-rg350-730a89ddc52c2ad89bfeb51636d2ac100a6055af.zip |
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.
-rw-r--r-- | graphics/cursorman.h | 2 |
1 files changed, 2 insertions, 0 deletions
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(); }; |