Fix Terragen loader

Fixes e8d2b84017
pull/4934/head
Turo Lamminen 2023-02-03 11:44:27 +02:00
parent dbd0ae8f22
commit 8d405d60d9
1 changed files with 2 additions and 2 deletions

View File

@ -230,8 +230,8 @@ void TerragenImporter::InternReadFile(const std::string &pFile,
} }
// Get to the next chunk (4 byte aligned) // Get to the next chunk (4 byte aligned)
unsigned dtt = reader.GetCurrentPos(); unsigned dtt = reader.GetCurrentPos() & 0x3;
if (dtt & 0x3) { if (dtt) {
reader.IncPtr(4 - dtt); reader.IncPtr(4 - dtt);
} }
} }