Core/Spells: Removed leftovers of old cooldown handling

* Use ItemEffect.db2 data directly instead of copying it to another structure
This commit is contained in:
Shauren
2015-02-21 13:08:33 +01:00
parent 6ff1764084
commit 68fceee10e
14 changed files with 74 additions and 105 deletions

View File

@@ -946,6 +946,7 @@ public:
bool found = false;
uint32 count = 0;
uint32 maxResults = sWorld->getIntConfig(CONFIG_MAX_RESULTS_LOOKUP_COMMANDS);
int32 locale = handler->GetSessionDbcLocale();
// Search in TaxiNodes.dbc
for (uint32 id = 0; id < sTaxiNodesStore.GetNumRows(); id++)
@@ -953,7 +954,7 @@ public:
TaxiNodesEntry const* nodeEntry = sTaxiNodesStore.LookupEntry(id);
if (nodeEntry)
{
std::string name = nodeEntry->Name_lang;
std::string name = nodeEntry->Name_lang->Str[locale];
if (name.empty())
continue;