TMap set in Editor and used in PIE
I have a TMap being filled during the editor mode, and I want to use it during PIE. But whenever I try and make an iterator or access it, the game crashes with "Access violation reading location 0x0000000000000000."
I'm using this TMap in a A* navigation system. It stores a struct representing an edge (key of map), and the cost of the edge (element of map).
In beginPlay() during PIE I'm printing to the log the size of edgeMap.Num(), and it says 0. I can retrigger the method to fill it, which then says that edgeMap.Num() is the expected number. But I still get the violation crash.
I read that TMaps still cant be made a UPROPERTY(), but doing that re-filling^ still causes a crash.
I can share more code if it helps. Thanks for looking.
asked Jul 18 '16 at 04:48 PM in C++ Programming
It's hard to tell what the issue is without more context (e.g. the stack trace of the crash and the code around it), but one possible issue is that you're using a
Check if changing the
Follow this question
Once you sign in you will be able to subscribe for any updates here