[ZoneBuilder] Check for spaces in asset name (This one took me about 4 hours of debugging to realize the source csv had a bunch of whitepace in it).

This commit is contained in:
TheApadayo 2019-01-16 12:15:13 -05:00
parent 7e40caefd4
commit b120b10197

View File

@ -207,6 +207,9 @@ namespace Components
{
Game::XAssetType type = Game::DB_GetXAssetNameType(typeName.data());
if (name.find(" ", 0) != std::string::npos)
Logger::Print("Warning: asset with name '%s' contains spaces. Check your zone source file to ensure this is correct!\n", name.data());
// Sanitize name for empty assets
if (name[0] == ',') name.erase(name.begin());