summaryrefslogtreecommitdiff
path: root/src/map_type.h
diff options
context:
space:
mode:
authorCharles Pigott <charlespigott@googlemail.com>2020-12-27 10:44:22 +0000
committerCharles Pigott <charlespigott@googlemail.com>2020-12-27 10:55:42 +0000
commit860c270c73048b4930ac8cbebcd60be746eb9782 (patch)
treea88a8acb208cf426ae8fac05dda202c57b59426a /src/map_type.h
parent395a5d9991b500c681ff384f8d3b4e153e687abb (diff)
downloadopenttd-860c270c73048b4930ac8cbebcd60be746eb9782.tar.xz
Codechange: Replace assert_compile macro with static_assert
Diffstat (limited to 'src/map_type.h')
-rw-r--r--src/map_type.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map_type.h b/src/map_type.h
index 453186d88..f34f137c6 100644
--- a/src/map_type.h
+++ b/src/map_type.h
@@ -24,7 +24,7 @@ struct Tile {
byte m5; ///< General purpose
};
-assert_compile(sizeof(Tile) == 8);
+static_assert(sizeof(Tile) == 8);
/**
* Data that is stored per tile. Also used Tile for this.