X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=code.c;h=43a34c9de78aec26749824fc03d436b502538c5c;hp=e480ed21df2dc8cb6f4cd902546cca322b1e91d0;hb=36c5722273f1ea87603621c6ee20b7178a7a641b;hpb=d201cfe6b49f95ba8bcaa0eebb3a6fb7e1a16913 diff --git a/code.c b/code.c index e480ed2..43a34c9 100644 --- a/code.c +++ b/code.c @@ -137,8 +137,8 @@ bool code_write(const char *filename, const char *lnofile) { code_header.strings.offset = code_header.globals.offset + (sizeof(int32_t) * vec_size(code_globals)); code_header.strings.length = vec_size(code_chars); code_header.version = 6; - if (OPTION_VALUE_BOOL(OPTION_FORCECRC)) - code_header.crc16 = OPTION_VALUE_U16(OPTION_FORCED_CRC); + if (OPTS_OPTION_BOOL(OPTION_FORCECRC)) + code_header.crc16 = OPTS_OPTION_U16(OPTION_FORCED_CRC); else code_header.crc16 = code_crc; code_header.entfield = code_entfields;