Download

Compiler Error: Assertion failed: !TickableObjects.Contains(TickableObject)

I have this weird error where if I compile the 2nd time after opening a project. It just Crashes. I think the cause of this is one of my classes that inherits UObject is inheriting from FTickableGameObject. The first compile runs successfully, but after compiling again it just crashes. One of the things I notice is, When i play the editor and stop it and compile again it does not crash. Every time I compile the second time is crashing. Lol
I don’t really know what’s going on here.

Here is the code:

Quest.h

UCLASS(BlueprintType, Blueprintable)
class XXXX_API UQuest : public UObject, public FTickableGameObject
{
	GENERATED_BODY()

#pragma region Tick Functions

public:

	virtual void Tick(float DeltaTime) override;

	bool IsTickable() const override;

	bool IsTickableInEditor() const override;

	bool IsTickableWhenPaused() const override;

	TStatId GetStatId() const override;

	UWorld* GetWorld() const override;

#pragma endregion
}

Quest.cpp

void UQuest::Tick(float DeltaTime)
{
}

bool UQuest::IsTickable() const
{
	return bQuestTickable;
}

bool UQuest::IsTickableInEditor() const
{
	return false;
}

bool UQuest::IsTickableWhenPaused() const
{
	return false;
}

TStatId UQuest::GetStatId() const
{
	return TStatId();
}

UWorld* UQuest::GetWorld() const
{
	return GetOuter()->GetWorld();
}