How to do MyArray.Contains(NULL) check in 4.8?

As of 4.8, the following code section doesn’t work. My brain is frazzled. Any idea how I can replace this?



if (!UGESGameplayStatics::GetGameState(GetWorld())->SatelliteArray.Contains(NULL))


GetGameState simply get’s the worlds Gamestate and casts it to my custom one, returning it if it passes.

Apparently changing NULL to nullptr works. Nevermind.

Should be using nullptr anyway… we’re not neanderthals! :smiley: c++ - NULL vs nullptr (Why was it replaced?) - Stack Overflow

I did wonder about that for a while :stuck_out_tongue: Ah well at least I know now!