Download

if I do anything with skeletal meshes in c++, it will crash.

So I’m making a game, and want to implement a weapon switch. however, this has been super freaking hard because of stupid c++.
Here we have a project. It compiles quite nicely! even the following code doesn’t crash it:
Screenshot 2021-01-04 174134.png

But if I add THIS code (uncommented of course)
Screenshot 2021-01-04 174213.png

it crashes the whole thing and I can’t even open the project unless I run it directly from visual studio. It’s not a problem with the FP_Gun, I also tried with a different mesh name I had imported (called Shotgun)… didn’t work.

Please help and thank you.