mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-01 19:56:38 +00:00
clang-tidy modernize-use-auto
This commit is contained in:
+3
-3
@@ -561,7 +561,7 @@ void Client::AI_Stop() {
|
||||
Mob::AI_Stop();
|
||||
this->Message_StringID(13,PLAYER_REGAIN);
|
||||
|
||||
EQApplicationPacket *app = new EQApplicationPacket(OP_Charm, sizeof(Charm_Struct));
|
||||
auto app = new EQApplicationPacket(OP_Charm, sizeof(Charm_Struct));
|
||||
Charm_Struct *ps = (Charm_Struct*)app->pBuffer;
|
||||
ps->owner_id = 0;
|
||||
ps->pet_id = this->GetID();
|
||||
@@ -2526,7 +2526,7 @@ void NPC::AddSpellToNPCList(int16 iPriority, int16 iSpellID, uint16 iType,
|
||||
|
||||
void NPC::RemoveSpellFromNPCList(int16 spell_id)
|
||||
{
|
||||
std::vector<AISpells_Struct>::iterator iter = AIspells.begin();
|
||||
auto iter = AIspells.begin();
|
||||
while(iter != AIspells.end())
|
||||
{
|
||||
if((*iter).spellid == spell_id)
|
||||
@@ -2543,7 +2543,7 @@ void NPC::AISpellsList(Client *c)
|
||||
if (!c)
|
||||
return;
|
||||
|
||||
for (std::vector<AISpells_Struct>::iterator it = AIspells.begin(); it != AIspells.end(); ++it)
|
||||
for (auto it = AIspells.begin(); it != AIspells.end(); ++it)
|
||||
c->Message(0, "%s (%d): Type %d, Priority %d",
|
||||
spells[it->spellid].name, it->spellid, it->type, it->priority);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user