Editor freezes when hit play after including new C++ function in a blueprint

I think I narrowed down the issue to one function. I went into the Map Generator blueprint and placed a breakpoint on every function in the event graph, so that I could step through all of the functions. It seems like the PlaceResources function is causing the freeze. I see that there is quite a bit of code in that function. I’ll be looking through it, but I figured I’d give you the heads up since you already know what it does.