Added a bit which should, but doesn't, fix the game crashing when you try to teleport or load a new game or probably enter a cutscene.