Changing C++ code doesn't affect actors in scene

For example, I changed the loading mesh in the class constructor, but the actors using this script that are already in the editor are still loading the old mesh. The change only applies when I drag another object from the content browser into the scene

How do I make all actors in the scene adapt the changes. Have tried restart the editor, change build configurations.

I think this got fixed in the newer engine version