From 18d51ccb80fcbb19311dbaf204c892bdb78d5c0a Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sat, 12 Oct 2019 10:22:53 +0100 Subject: [PATCH] Fix compilation on MSVC --- src/station_base.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/station_base.h b/src/station_base.h index a8e9ae9f8a..793eb99046 100644 --- a/src/station_base.h +++ b/src/station_base.h @@ -54,7 +54,9 @@ public: #endif StationID second; }; +#if OTTD_ALIGNMENT == 0 && (defined(__GNUC__) || defined(__clang__)) static_assert(sizeof(ShareEntry) == 6, ""); +#endif friend bool operator<(const ShareEntry &a, const ShareEntry &b) noexcept {