Core/Misc: reduced amount of string memory allocations (Step I)

This commit is contained in:
Spp
2012-10-24 15:34:48 +02:00
parent ca85c3b475
commit 013fb1f4d9
91 changed files with 881 additions and 890 deletions
+2 -2
View File
@@ -265,7 +265,7 @@ public:
return false;
LocaleConstant loc = handler->GetSessionDbcLocale();
char const* targetName = target->GetName();
char const* targetName = target->GetName().c_str();
char const* knownStr = handler->GetTrinityString(LANG_KNOWN);
// Search in CharTitles.dbc
@@ -681,7 +681,7 @@ public:
uint64 characterGuid;
uint32 accountId;
Player* player = sObjectAccessor->FindPlayerByName(characterName.c_str());
Player* player = sObjectAccessor->FindPlayerByName(characterName);
if (player)
{
characterGuid = player->GetGUID();