Replace all auto with auto*

For components
This commit is contained in:
David Markowitz
2023-06-09 01:27:05 -07:00
parent 62aa863997
commit e2dfa1809d
233 changed files with 753 additions and 753 deletions

View File

@@ -685,7 +685,7 @@ void HandlePacket(Packet* packet) {
}
if (entity) {
auto skillComponent = entity->GetComponent<SkillComponent>();
auto* skillComponent = entity->GetComponent<SkillComponent>();
if (skillComponent != nullptr) {
skillComponent->Reset();
@@ -1020,13 +1020,13 @@ void HandlePacket(Packet* packet) {
EntityManager::Instance()->ConstructAllEntities(packet->systemAddress);
auto characterComponent = player->GetComponent<CharacterComponent>();
auto* characterComponent = player->GetComponent<CharacterComponent>();
if (characterComponent) {
player->GetComponent<CharacterComponent>()->RocketUnEquip(player);
}
// Do charxml fixes here
auto levelComponent = player->GetComponent<LevelProgressionComponent>();
auto* levelComponent = player->GetComponent<LevelProgressionComponent>();
if (!levelComponent) return;
auto version = levelComponent->GetCharacterVersion();
@@ -1052,7 +1052,7 @@ void HandlePacket(Packet* packet) {
player->GetCharacter()->SetTargetScene("");
// Fix the destroyable component
auto destroyableComponent = player->GetComponent<DestroyableComponent>();
auto* destroyableComponent = player->GetComponent<DestroyableComponent>();
if (destroyableComponent != nullptr) {
destroyableComponent->FixStats();
@@ -1281,7 +1281,7 @@ void WorldShutdownProcess(uint32_t zoneId) {
auto* entity = Player::GetPlayer(player);
Game::logger->Log("WorldServer", "Saving data!");
if (entity != nullptr && entity->GetCharacter() != nullptr) {
auto skillComponent = entity->GetComponent<SkillComponent>();
auto* skillComponent = entity->GetComponent<SkillComponent>();
if (skillComponent != nullptr) {
skillComponent->Reset();