From 56fd1bc9e51170e13396aca94a2810479fa4965f Mon Sep 17 00:00:00 2001 From: SamCroswell Date: Wed, 8 Jun 2016 10:27:11 -0400 Subject: [PATCH] Scanner - Minor Fix --- code/modules/detective_work/scanner.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/modules/detective_work/scanner.dm b/code/modules/detective_work/scanner.dm index 54fa83aa270..e1cfdb82e9d 100644 --- a/code/modules/detective_work/scanner.dm +++ b/code/modules/detective_work/scanner.dm @@ -29,17 +29,22 @@ // I really, really wish I didn't have to split this into two seperate loops. But the datacore is awful. + for (var/record in data_core.general) var/datum/data/record/S = record if(search == lowertext(S.fields["fingerprint"]) || search == lowertext(S.fields["name"])) name = S.fields["name"] + fingerprint = S.fields["fingerprint"] continue for (var/record in data_core.medical) + var/datum/data/record/M = record if (search == lowertext(M.fields["b_dna"]) || name == M.fields["name"]) dna = M.fields["b_dna"] if(!fingerprint) // We have searched by DNA, and do not have the relevant information from the security records. name = M.fields["name"] + for (var/sec_record in data_core.general) + var/datum/data/record/S = sec_record if(name == S.fields["name"]) fingerprint = S.fields["fingerprint"] continue @@ -51,6 +56,7 @@ Blood DNA: [dna]") return + to_chat(user, "No match found in station records.") /obj/item/device/detective_scanner/verb/print_scanner_report()