Fixed a bug with auto-creating rooms from dangling exits

caused by variable shadowing