Added defensive code for Overworld cpp files