Fix borked layer names

This commit is contained in:
Phillip Stephens 2021-06-06 22:22:44 -07:00
parent 4cd242aef3
commit c4eb432834
Signed by: Antidote
GPG Key ID: F8BEE4C83DACA60D
1 changed files with 1 additions and 1 deletions

View File

@ -450,7 +450,7 @@ bool MLVL::CookSAVW(const hecl::ProjectPath& outPath, const World& wld) {
hecl::DirectoryEnumerator(area.path.getAbsolutePath(), hecl::DirectoryEnumerator::Mode::DirsSorted)) { hecl::DirectoryEnumerator(area.path.getAbsolutePath(), hecl::DirectoryEnumerator::Mode::DirsSorted)) {
hecl::SystemString layerName; hecl::SystemString layerName;
hecl::SystemChar* endCh = nullptr; hecl::SystemChar* endCh = nullptr;
hecl::StrToUl(e.m_name.c_str(), &endCh, 0); hecl::StrToUl(e.m_name.c_str(), &endCh, 10);
if (!endCh) if (!endCh)
layerName = hecl::StringUtils::TrimWhitespace(e.m_name); layerName = hecl::StringUtils::TrimWhitespace(e.m_name);
else else