mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 00:48:56 +01:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user