Caches all unique areas so that they are properly loaded in (#16092)

This commit is contained in:
Farie82
2021-05-26 22:41:35 +01:00
committed by GitHub
parent bfc5895c7d
commit ebf7d7911e
3 changed files with 10 additions and 1 deletions
@@ -475,7 +475,9 @@ GLOBAL_DATUM_INIT(_preloader, /datum/dmm_suite/preloader, new())
if(initial(A.there_can_be_many))
area_list[A] = new A
else
area_list[A] = locate(A)
if(!GLOB.all_unique_areas[A])
GLOB.all_unique_areas[A] = new A // No locate here else it will find a subtype of the one we're looking for
area_list[A] = GLOB.all_unique_areas[A]
return area_list[A]