From 5413e89a6b6dd419fdfe3993dac203c8b3425b13 Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Wed, 11 Sep 2019 17:47:44 +0100 Subject: BLADERUNNER: Ensure the Color256 struct is correctly packed (#1838) --- engines/bladerunner/color.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'engines/bladerunner') diff --git a/engines/bladerunner/color.h b/engines/bladerunner/color.h index beec53760b..8123f775d1 100644 --- a/engines/bladerunner/color.h +++ b/engines/bladerunner/color.h @@ -37,11 +37,15 @@ struct Color { Color(float r_, float g_, float b_) : r(r_), g(g_), b(b_) {} }; +#include "common/pack-start.h" + struct Color256 { uint8 r; uint8 g; uint8 b; -}; +} PACKED_STRUCT; + +#include "common/pack-end.h" } // End of namespace BladeRunner -- cgit v1.2.3