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