Change magic numbers to enum

This commit is contained in:
Rochet2
2016-03-19 14:33:30 +02:00
parent e19f56ba23
commit 116589c55a

View File

@@ -3240,7 +3240,7 @@ namespace LuaPlayer
{
if (SkillLineEntry const* entry = sSkillLineStore.LookupEntry(i))
{
if (entry->categoryId == 10 || entry->categoryId == 12)
if (entry->categoryId == SKILL_CATEGORY_LANGUAGES || entry->categoryId == SKILL_CATEGORY_GENERIC)
continue;
if (player->HasSkill(entry->id))