summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2015-02-01 12:25:51 +0000
committerfrosch <frosch@openttd.org>2015-02-01 12:25:51 +0000
commit6fceaeee40394a9f1cd50149346cc6009989cb9c (patch)
tree6dedc06041abb23a31cbf4e16f5dae47e4fb7f82
parentc9114af70627010c81e80d0b3530554d2b06b9b1 (diff)
downloadopenttd-6fceaeee40394a9f1cd50149346cc6009989cb9c.tar.xz
(svn r27132) -Codechange: Add an assertion about the size of the Tile struct to ensure alignment assumptions.
-rw-r--r--src/map_type.h2
1 files changed, 2 insertions, 0 deletions
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.