mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-29 14:32:17 +00:00
clang-tidy modernize-use-auto
This commit is contained in:
1 parent
cdbeb24a05
commit
60da544d3a
87 files changed
+1465
-1340
No files matched your search
+2
-2
@@ -264,7 +264,7 @@ void Mob::MakePoweredPet(uint16 spell_id, const char* pettype, int16 petpower,
|
||||
}
|
||||
|
||||
//we copy the npc_type data because we need to edit it a bit
|
||||
NPCType *npc_type = new NPCType;
|
||||
auto npc_type = new NPCType;
|
||||
memcpy(npc_type, base, sizeof(NPCType));
|
||||
|
||||
// If pet power is set to -1 in the DB, use stat scaling
|
||||
@@ -412,7 +412,7 @@ void Mob::MakePoweredPet(uint16 spell_id, const char* pettype, int16 petpower,
|
||||
}
|
||||
|
||||
//this takes ownership of the npc_type data
|
||||
Pet *npc = new Pet(npc_type, this, (PetType)record.petcontrol, spell_id, record.petpower);
|
||||
auto npc = new Pet(npc_type, this, (PetType)record.petcontrol, spell_id, record.petpower);
|
||||
|
||||
// Now that we have an actual object to interact with, load
|
||||
// the base items for the pet. These are always loaded
|
||||
|
||||
Reference in new issue
Block a user