mirror of
https://github.com/SWG-Source/src.git
synced 2026-07-14 23:07:48 -04:00
sorry, did it wrong...
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user