Here is the code that crashes the editor:
ATOA_Weapon* wpn = (ATOA_Weapon*)GetWorld()->SpawnActor(ATOA_Weapon::StaticClass());
I can compile in VS2015 Community without problems or errors, but as soon as i switch back to the editor it crashes with “Fatal Error!” popup window. When i try to start the editor again i get the same error. If i comment out that line, the editor starts right up. Is there something wrong with that line of code? What’s going on here?