From 6fceaeee40394a9f1cd50149346cc6009989cb9c Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 1 Feb 2015 12:25:51 +0000 Subject: (svn r27132) -Codechange: Add an assertion about the size of the Tile struct to ensure alignment assumptions. --- src/map_type.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/map_type.h b/src/map_type.h index 4677fcb8c..620885e5d 100644 --- a/src/map_type.h +++ b/src/map_type.h @@ -26,6 +26,8 @@ struct Tile { byte m5; ///< General purpose }; +assert_compile(sizeof(Tile) == 8); + /** * Data that is stored per tile. Also used Tile for this. * Look at docs/landscape.html for the exact meaning of the members. -- cgit v1.2.3-54-g00ecf