diff options
Diffstat (limited to 'src/gfx_type.h')
-rw-r--r-- | src/gfx_type.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gfx_type.h b/src/gfx_type.h index f5ed4a328..298513c84 100644 --- a/src/gfx_type.h +++ b/src/gfx_type.h @@ -149,7 +149,7 @@ struct Colour { uint8 b, g, r, a; ///< colour channels in LE order #endif /* TTD_ENDIAN == TTD_BIG_ENDIAN */ - operator uint32 () { return *(uint32 *)this; } + operator uint32 () const { return *(uint32 *)this; } }; enum FontSize { |