From cda239d06a48bc3035898740d6aaca9c2e474e4d Mon Sep 17 00:00:00 2001 From: CodeCodon Date: Tue, 14 Jul 2015 15:42:31 -0500 Subject: [PATCH] sorry, did it wrong... --- .../library/sharedSkillSystem/src/shared/SkillObject.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/engine/shared/library/sharedSkillSystem/src/shared/SkillObject.cpp b/engine/shared/library/sharedSkillSystem/src/shared/SkillObject.cpp index 3129b768..e4639f46 100644 --- a/engine/shared/library/sharedSkillSystem/src/shared/SkillObject.cpp +++ b/engine/shared/library/sharedSkillSystem/src/shared/SkillObject.cpp @@ -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; }