fix trimming off last byte of BSPX on load

This commit is contained in:
Jonathan 2022-07-07 16:46:15 -04:00
parent 43c5e942b2
commit 49bbfef253
1 changed files with 1 additions and 1 deletions

View File

@ -2146,7 +2146,7 @@ void LoadBSPFile(fs::path &filename, bspdata_t *bspdata)
return;
}
bspdata->bspx.transfer(xlump.lumpname.data(), std::vector<uint8_t>(file_data->begin() + xlump.fileofs, file_data->begin() + xlump.fileofs + xlump.filelen - 1));
bspdata->bspx.transfer(xlump.lumpname.data(), std::vector<uint8_t>(file_data->begin() + xlump.fileofs, file_data->begin() + xlump.fileofs + xlump.filelen));
}
}
}