From 6d6e6ab0268a66dad2c8439995b8d0493e1d33db Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Thu, 20 Aug 2020 13:48:00 +0200 Subject: [PATCH] Log warning and fall back to uint8_t if level size wasn't specified. Signed-off-by: Deukhoofd --- src/Defines.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Defines.hpp b/src/Defines.hpp index 9832962..147b0e6 100644 --- a/src/Defines.hpp +++ b/src/Defines.hpp @@ -12,7 +12,8 @@ typedef uint32_t level_int_t; #elif LEVEL_U64 typedef uint64_t level_int_t; #else -#error No Level size was specified +#warning Level size wasn't specified, falling back to uint8_t +typedef uint8_t level_int_t; #endif #endif // CREATURELIB_DEFINES_HPP