Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pospelove committed Dec 18, 2024
1 parent f8f76ff commit d84c4e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libespm/src/WRLD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ WRLD::Data WRLD::GetData(CompressedFieldsCache& cache) const noexcept
} else if (!std::memcmp(type, "NAM4", 4)) {
result.waterLODHeight = *reinterpret_cast<const float*>(data);
} else if (!std::memcmp(type, "DNAM", 4)) {
// std::copy_n(data, std::size(result.LandData), result.LandData);
std::copy_n(data, std::size(result.LandData), result.LandData);
} else if (!std::memcmp(type, "MODL", 4)) {
result.cloudModelFileName = reinterpret_cast<const char*>(data);
} else if (!std::memcmp(type, "MNAM", 4)) {
Expand All @@ -48,8 +48,8 @@ WRLD::Data WRLD::GetData(CompressedFieldsCache& cache) const noexcept
} else if (!std::memcmp(type, "PNAM", 4)) {
result.useFlags = *reinterpret_cast<const WRLD::UseParentFlags*>(data);
} else if (!std::memcmp(type, "ONAM", 4)) {
// std::copy_n(data, std::size(result.mapMarkerData),
// result.mapMarkerData);
std::copy_n(data, std::size(result.mapMarkerData),
result.mapMarkerData);
} else if (!std::memcmp(type, "TNAM", 4)) {
result.diffuseLODName = reinterpret_cast<const char*>(data);
} else if (!std::memcmp(type, "UNAM", 4)) {
Expand Down

0 comments on commit d84c4e8

Please sign in to comment.