|
@@ -37,9 +37,9 @@ namespace ROS2
|
|
|
}
|
|
|
// failed to get game object, let us retry as editor
|
|
|
component = AzToolsFramework::FindWrappedComponentForEntity<ComponentType>(entity);
|
|
|
- AZ_Assert(entity, "Enitity %s has no component of type", entity->GetId());
|
|
|
+ AZ_Assert(entity, "Entity %s has no component of type", entity->GetId());
|
|
|
// no component found
|
|
|
- return nullptr;
|
|
|
+ return component;
|
|
|
}
|
|
|
|
|
|
} // namespace Utils
|