Skip to content

Commit

Permalink
Merge branches 'actorcomponent' and 'master' of http://github.com/duc…
Browse files Browse the repository at this point in the history
  • Loading branch information
sven1977 committed Jan 31, 2018
2 parents a5edddc + c45eda6 commit 8d1c97c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Plugins/MaRLEnE/Source/MaRLEnE/Private/MLObserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,14 @@ void UMLObserver::OnComponentDestroyed(bool bDestroyingHierarchy)
if (BillboardComponent)
BillboardComponent->DestroyComponent();



}

UMLObserver::~UMLObserver()
{
// unregister from the manager
MLObserversManager::UnregisterObserver(this);

}

TArray<UMLObserver *> UMLObserver::GetRegisteredObservers()
Expand Down
1 change: 1 addition & 0 deletions Plugins/MaRLEnE/Source/MaRLEnE/Public/MLObserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ class MARLENE_API UMLObserver : public UActorComponent
public:
// Sets default values for this component's properties
UMLObserver();
~UMLObserver();
void OnRegister() override;
void OnComponentDestroyed(bool bDestroyingHierarchy) override;

Expand Down

0 comments on commit 8d1c97c

Please sign in to comment.