2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-06-30 22:13:28 +00:00

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

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::SystemString layerName;
hecl::SystemChar* endCh = nullptr;
hecl::StrToUl(e.m_name.c_str(), &endCh, 0);
hecl::StrToUl(e.m_name.c_str(), &endCh, 10);
if (!endCh)
layerName = hecl::StringUtils::TrimWhitespace(e.m_name);
else