Why does this crash the engine?

MDoorRT is an UTextureRenderTarget2D*

if ((UWidgetLayoutLibrary::GetViewportSize(GetWorld()).X == MDoorRT->SizeX) && (UWidgetLayoutLibrary::GetViewportSize(GetWorld()).Y == MDoorRT->SizeY))
	{
		some code
	}

Nvm I solved it:)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.