diff --git a/src/command_type.h b/src/command_type.h index 1bc924b428..f02980a101 100644 --- a/src/command_type.h +++ b/src/command_type.h @@ -513,6 +513,8 @@ enum FlaggedCommands { CMD_ID_MASK = 0x00FF, ///< mask for the command ID }; +static_assert(CMD_END <= CMD_ID_MASK + 1); + /** * Command flags for the command table _command_proc_table. *