Editor crashes if i add basic c++ class

editor crashes if i add basic c++ class but if comment out my code and run editor it works, i just need to re-compile game code from editor.

guestion is do i need to add something to code or editor settings, that make editor skip my code on launch because it works fine but starts to be annoying when i need to comment code out each launch.

or is it somethin what will be fixed later?

EDIT:
does all c++ class need to inherit from some unreal class like actor or pawn ?

sorry forgot if (GEngine) part.
works now.