Is it really so?
Code:
std::string arg = argv[i];
arg.erase(remove_if(arg.begin(), arg.end(), isspace), arg.end());
if( _stricmp( arg.c_str(), "-type" ) == 0 && argc > i + 1 )
{
if( _stricmp( argv[++i], "model" ) == 0 ) assetType = AssetTypes::Model;
else if( _stricmp( argv[i], "anim" ) == 0 ) assetType = AssetTypes::Animation;
else assetType = AssetTypes::Unknown;
}
Isn't arg.c_str() just cleaned argv[i]? Shouldn't it be
Code:
else if( _stricmp( argv[++i], "anim" ) == 0 ) assetType = AssetTypes::Animation;
like with model?