diff --git a/code/WorkInProgress/Cael_Aislinn/Economy/EFTPOS.dm b/code/WorkInProgress/Cael_Aislinn/Economy/EFTPOS.dm index 5237df97d9..af06c1dfd8 100644 --- a/code/WorkInProgress/Cael_Aislinn/Economy/EFTPOS.dm +++ b/code/WorkInProgress/Cael_Aislinn/Economy/EFTPOS.dm @@ -70,8 +70,12 @@ D.name = "small parcel - 'EFTPOS access code'" /obj/item/device/eftpos/proc/reconnect_database() - for(var/obj/machinery/account_database/DB in world) //Hotfix until someone finds out why it isn't in 'machines' - if(DB.z == src.z) + var/turf/location = get_turf(src) + if(!location) + return + + for(var/obj/machinery/account_database/DB in machines) //Hotfix until someone finds out why it isn't in 'machines' + if(DB.z == location.z) linked_db = DB break @@ -239,4 +243,4 @@ else ..() - //emag? \ No newline at end of file + //emag?