diff --git a/dWorldServer/WorldServer.cpp b/dWorldServer/WorldServer.cpp index 964a4bb9..110b7573 100644 --- a/dWorldServer/WorldServer.cpp +++ b/dWorldServer/WorldServer.cpp @@ -1126,6 +1126,13 @@ void HandlePacket(Packet* packet) { // Update the characters xml to ensure the update above is not only saved, but so the client picks up on the changes. c->SaveXMLToDatabase(); + // Fix the destroyable component + auto* destroyableComponent = player->GetComponent(); + + if (destroyableComponent != nullptr) { + destroyableComponent->FixStats(); + } + WorldPackets::SendCreateCharacter(packet->systemAddress, characterComponent->GetReputation(), player->GetObjectID(), c->GetXMLData(), username, c->GetGMLevel(), c->GetPropertyCloneID()); WorldPackets::SendServerState(packet->systemAddress); @@ -1143,13 +1150,6 @@ void HandlePacket(Packet* packet) { player->GetCharacter()->SetTargetScene(""); - // Fix the destroyable component - auto* destroyableComponent = player->GetComponent(); - - if (destroyableComponent != nullptr) { - destroyableComponent->FixStats(); - } - //Tell the player to generate BBB models, if any: if (g_CloneID != 0) { const auto& worldId = Game::zoneManager->GetZone()->GetZoneID();