C++ Get Game Mode

Very offtopic but I c style casted to my custom game instance without defining it in the DefaultEngine.ini file and got all these weird editor crashes when i stopped the game.

It is very dangerous because the cast will work even when there are errors and you just dont associate the upcoming exceptions with the previous casting.

Cast<> fixed it for me, thank you very much.

1 Like