fix: imaginite not being taken when starting shooting gallery (#1823)

This commit is contained in:
David Markowitz
2025-06-23 00:07:52 -07:00
committed by GitHub
parent 3c244cce27
commit 48e3471831
5 changed files with 15 additions and 12 deletions

View File

@@ -673,8 +673,9 @@ void Entity::Initialize() {
}
// Shooting gallery component
if (compRegistryTable->GetByIDAndType(m_TemplateID, eReplicaComponentType::SHOOTING_GALLERY) > 0) {
AddComponent<ShootingGalleryComponent>();
const auto shootingGalleryComponentID = compRegistryTable->GetByIDAndType(m_TemplateID, eReplicaComponentType::SHOOTING_GALLERY);
if (shootingGalleryComponentID > 0) {
AddComponent<ShootingGalleryComponent>(shootingGalleryComponentID);
}
if (compRegistryTable->GetByIDAndType(m_TemplateID, eReplicaComponentType::PROPERTY, -1) != -1) {