fix loading scenes in some older formats (#782)

This fix is based on lcdr's luzviewer
This commit is contained in:
Aaron Kimbrell 2022-10-21 19:34:38 -05:00 committed by GitHub
parent 63af2c8da7
commit 409d682c9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -338,10 +338,11 @@ const Path* Zone::GetPath(std::string name) const {
void Zone::LoadSceneTransition(std::ifstream& file) {
SceneTransition sceneTrans;
if (m_ZoneFileFormatVersion < Zone::ZoneFileFormatVersion::LateAlpha) {
if (m_ZoneFileFormatVersion < Zone::ZoneFileFormatVersion::Auramar) {
uint8_t length;
BinaryIO::BinaryRead(file, length);
sceneTrans.name = BinaryIO::ReadString(file, length);
file.ignore(4);
}
//BR<42>THER MAY I HAVE SOME L<><4C>PS?