fix trimming off last byte of BSPX on load
This commit is contained in:
parent
43c5e942b2
commit
49bbfef253
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue