Hello everyone, I have a problem with the TMap structure. my project is pacman game. Briefly I create a TMap with key a TVector2D and value pointer to my cookie actor.
Every time I move with Pacman I check if my structure contains the cookie with FindRef.
This is where the problems begin: sometimes after 10 cookies Unreal crashes…sometimes after 50 cookies Unreal crashes… With debugging the problem is that it finds a null structure. Structure should be nothing. why does it return a null pointer?
A thousand thanks