aboutsummaryrefslogtreecommitdiff
path: root/graphics/cursorman.h
diff options
context:
space:
mode:
authorD G Turner2019-09-30 03:43:56 +0100
committerD G Turner2019-09-30 03:46:30 +0100
commit730a89ddc52c2ad89bfeb51636d2ac100a6055af (patch)
treec1562bc644d1657dd94e1dbd45da753a45bd691e /graphics/cursorman.h
parent420cbaf8b0bcbc13fd4fa52e01adc27376156599 (diff)
downloadscummvm-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.
Diffstat (limited to 'graphics/cursorman.h')
-rw-r--r--graphics/cursorman.h2
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();
};