qbsp: fix "unsigned marksurfaces" warning printing wrongly after auto upgrade

This commit is contained in:
Eric Wasylishen 2023-02-11 22:30:49 -07:00
parent ec55e5f2da
commit 85ba6ca205
1 changed files with 1 additions and 1 deletions

View File

@ -410,7 +410,7 @@ static void WriteExtendedTexinfoFlags(void)
}
static bool Is16BitMarkfsurfaceFormat(const bspversion_t *version) {
for (auto &lumpspec : qbsp_options.target_version->lumps) {
for (auto &lumpspec : version->lumps) {
if ((!strcmp("marksurfaces", lumpspec.name)
|| !strcmp("leaffaces", lumpspec.name)) && lumpspec.size == 2) {
return true;