mirror of https://github.com/AxioDL/metaforce.git
Fix borked layer names
This commit is contained in:
parent
4cd242aef3
commit
c4eb432834
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue