sorry, did it wrong...

This commit is contained in:
CodeCodon
2015-07-14 15:42:31 -05:00
parent 79057284be
commit cda239d06a
@@ -34,6 +34,7 @@ namespace
{
int s_recursionCountDepends = 0;
const int s_recursionCountDependsMax = 7;
const std::string m_Deprecated = "DEPRECATED_SKILLS";
//----------------------------------------------------------------------
@@ -438,7 +439,7 @@ void SkillObject::connectLinks(DataTable &dataTable, const std::string & parentN
}
else
{
if (nextSkillName.c_str() != "DEPRECATED_SKILLS")
if (m_Deprecated.compare(nextSkillName.c_str()) != 0)
WARNING (true, ("Could not find skill %s in DataTable", nextSkillName.c_str()));
}
}
@@ -469,7 +470,7 @@ bool SkillObject::load(DataTable & dataTable, const std::string & skillName)
if (skillRow == -1)
{
skillData = SkillData();
if (skillName.c_str() != "DEPRECATED_SKILLS")
if (m_Deprecated.compare(skillName.c_str()) != 0)
WARNING (true, ("SkillObject::load Could not find skill %s in DataTable", skillName.c_str()));
return false;
}