diff --git a/SHADE_Engine/src/ECS_Base/Managers/SHComponentManager.h b/SHADE_Engine/src/ECS_Base/Managers/SHComponentManager.h index 12b5b001..8921fbce 100644 --- a/SHADE_Engine/src/ECS_Base/Managers/SHComponentManager.h +++ b/SHADE_Engine/src/ECS_Base/Managers/SHComponentManager.h @@ -21,6 +21,7 @@ #include "../Events/SHComponentRemovedEvent.h" //#include "Scene/SHSceneNode.h" #include "SH_API.h" +#include "Events/SHEventManager.hpp" #include @@ -330,7 +331,7 @@ namespace SHADE SHComponentRemovedEvent eventData; eventData.eid = entityID; - eventData.addedComponentType = ComponentFamily::GetID(); + eventData.removedComponentType = ComponentFamily::GetID(); SHEventManager::BroadcastEvent(eventData, SH_COMPONENT_REMOVED_EVENT); }