Fix PetComponent and QuickBuildComponent tests, successful build with 19+ component test suites

Co-authored-by: aronwk-aaron <26027722+aronwk-aaron@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-08-31 23:00:34 +00:00
parent 856186636f
commit 0a06698514
3 changed files with 9 additions and 16 deletions

View File

@@ -83,8 +83,7 @@ TEST_F(QuickBuildComponentTest, SerializeWithDestroyableComponent) {
Entity testEntity(15, info);
// Add a destroyable component first
DestroyableComponent* destroyableComponent = new DestroyableComponent(&testEntity);
testEntity.AddComponent(eReplicaComponentType::DESTROYABLE, destroyableComponent);
DestroyableComponent* destroyableComponent = testEntity.AddComponent<DestroyableComponent>();
QuickBuildComponent quickBuildComponent(&testEntity);