chore(Core): typo fixes (#6272)

Co-authored-by: Bogir <m-000@bk.ru>
This commit is contained in:
Bogir[rus]
2021-06-16 14:28:00 +05:00
committed by GitHub
parent ae703c1383
commit e3a5727222
13 changed files with 12 additions and 13 deletions

View File

@@ -181,7 +181,7 @@ namespace AccountMgr
PreparedStatement* stmt = LoginDatabase.GetPreparedStatement(LOGIN_UPD_LOGON);
stmt->setBinary(0, salt);
stmt->setBinary(1, verifier);
stmt->setUInt32(2, accountId);;
stmt->setUInt32(2, accountId);
LoginDatabase.Execute(stmt);
sScriptMgr->OnPasswordChange(accountId);

View File

@@ -235,7 +235,7 @@ bool ArenaTeam::LoadMembersFromDB(QueryResult result)
//newMember.Name = fields[6].GetString();
newMember.Class = fields[7].GetUInt8();
newMember.PersonalRating = fields[8].GetUInt16();
newMember.MatchMakerRating = fields[9].GetUInt16() > 0 ? fields[9].GetUInt16() : sWorld->getIntConfig(CONFIG_ARENA_START_MATCHMAKER_RATING);;
newMember.MatchMakerRating = fields[9].GetUInt16() > 0 ? fields[9].GetUInt16() : sWorld->getIntConfig(CONFIG_ARENA_START_MATCHMAKER_RATING);
newMember.MaxMMR = std::max(fields[10].GetUInt16(), newMember.MatchMakerRating);
// Delete member if character information is missing

View File

@@ -485,7 +485,7 @@ float ThreatManager::getThreatWithoutTemp(Unit* victim, bool alsoSearchOfflineLi
if (!ref && alsoSearchOfflineList)
ref = iThreatOfflineContainer.getReferenceByTarget(victim);
if (ref)
threat = ref->getThreat() - ref->getTempThreatModifier();;
threat = ref->getThreat() - ref->getTempThreatModifier();
return threat;
}

View File

@@ -274,7 +274,6 @@ namespace lfg
// Store group so we don't need to call Mgr to get it later (if it's player group will be 0 otherwise would have joined as group)
for (LfgRolesMap::const_iterator it2 = itQueue->second.roles.begin(); it2 != itQueue->second.roles.end(); ++it2)
proposalGroups[it2->first] = itQueue->first.IsGroup() ? itQueue->first : ObjectGuid::Empty;
;
numPlayers += itQueue->second.roles.size();

View File

@@ -2450,7 +2450,7 @@ void WorldObject::GetCreatureListWithEntryInGrid(std::list<Creature*>& creatureL
{
Acore::AllCreaturesOfEntryInRange check(this, entry, maxSearchRange);
Acore::CreatureListSearcher<Acore::AllCreaturesOfEntryInRange> searcher(this, creatureList, check);
Cell::VisitGridObjects(this, searcher, maxSearchRange);;
Cell::VisitGridObjects(this, searcher, maxSearchRange);
}
/*

View File

@@ -85,7 +85,7 @@ class GameEventMgr
{
private:
GameEventMgr();
~GameEventMgr() = default;;
~GameEventMgr() = default;
public:
static GameEventMgr* instance();

View File

@@ -693,7 +693,7 @@ void ObjectMgr::LoadCreatureTemplateSpells()
}
CreatureTemplate& creatureTemplate = itr->second;
creatureTemplate.spells[index] = fields[2].GetUInt32();;
creatureTemplate.spells[index] = fields[2].GetUInt32();
++count;
} while (result->NextRow());

View File

@@ -187,7 +187,7 @@ protected:
uint8 CharCount;
private:
virtual ~CharacterCreateInfo() = default;;
virtual ~CharacterCreateInfo() = default;
};
struct PacketCounter

View File

@@ -2021,7 +2021,7 @@ void SpellMgr::LoadSpellMixology()
continue;
}
mSpellMixologyMap[entry] = fields[1].GetFloat();;
mSpellMixologyMap[entry] = fields[1].GetFloat();
++count;
} while (result->NextRow());

View File

@@ -54,7 +54,7 @@ class Weather
{
public:
Weather(uint32 zone, WeatherData const* weatherChances);
~Weather() = default;;
~Weather() = default;
bool Update(uint32 diff);
bool ReGenerate();

View File

@@ -173,7 +173,7 @@ public:
case EVENT_SPEECH_7:
me->setFaction(103);
if (PlayerGUID && ObjectAccessor::GetUnit(*me, PlayerGUID))
AttackStart(ObjectAccessor::GetUnit(*me, PlayerGUID));;
AttackStart(ObjectAccessor::GetUnit(*me, PlayerGUID));
break;
}
}

View File

@@ -679,7 +679,7 @@ public:
if( Unit* c = v->GetBase() )
if( c->GetTypeId() == TYPEID_UNIT && c->ToCreature()->GetEntry() == (pInstance->GetData(DATA_TEAMID_IN_INSTANCE) == TEAM_HORDE ? VEHICLE_ARGENT_BATTLEWORG : VEHICLE_ARGENT_WARHORSE) )
{
me->GetMotionMaster()->MovementExpired();;
me->GetMotionMaster()->MovementExpired();
me->GetMotionMaster()->MoveIdle();
me->StopMoving();
me->CastSpell(me, SPELL_TRAMPLE_STUN, false);

View File

@@ -232,7 +232,7 @@ public:
return;
if (summoner->ToCreature())
casterGUID = summoner->ToCreature()->GetGUID();;
casterGUID = summoner->ToCreature()->GetGUID();
}
void JustDied(Unit* /*killer*/) override