fix crash in release build

This commit is contained in:
Enno Rehling 2021-05-04 21:06:53 +02:00
parent 7d7842b849
commit c68a356202
2 changed files with 13 additions and 3 deletions

View File

@ -45,6 +45,18 @@
"type": "STRING"
}
]
},
{
"name": "x64-Release",
"generator": "Ninja",
"configurationType": "RelWithDebInfo",
"buildRoot": "${projectDir}\\out\\build\\${name}",
"installRoot": "${projectDir}\\out\\install\\${name}",
"cmakeCommandArgs": "",
"buildCommandArgs": "",
"ctestCommandArgs": "",
"inheritEnvironments": [ "msvc_x64_x64" ],
"variables": []
}
]
}
}

View File

@ -2965,10 +2965,8 @@ void maketemp_cmd(unit *u, order **olist)
ship *sh;
unit *u2;
order **ordp, **oinsert;
#ifndef NDEBUG
keyword_t kwd = init_order(makeord, NULL);
assert(kwd == K_MAKETEMP);
#endif
alias = getid();
s = gettoken(token, sizeof(token));
if (s && s[0] == '\0') {