diff --git a/code/modules/library/lib_machines.dm b/code/modules/library/lib_machines.dm index 9065abf3b367e..d5a2f4df046e7 100644 --- a/code/modules/library/lib_machines.dm +++ b/code/modules/library/lib_machines.dm @@ -88,10 +88,10 @@ sleep(rand(200,400)) visible_message(SPAN_NOTICE("\The [src] whirs as it prints and binds a new book.")) binding = FALSE - var/obj/item/book/b = new(loc) - b.dat = O:info - b.SetName("Print Job #" + "[rand(100, 999)]") - b.icon_state = "book[rand(1,7)]" + var/obj/item/book/B = new(loc) + B.dat = O:info + B.SetName("Print Job #" + "[rand(100, 999)]") + B.icon_state = "book[rand(1,7)]" qdel(O) return TRUE diff --git a/code/modules/modular_computers/file_system/programs/generic/library.dm b/code/modules/modular_computers/file_system/programs/generic/library.dm index f9470205b8732..b7d0f7012a40c 100644 --- a/code/modules/modular_computers/file_system/programs/generic/library.dm +++ b/code/modules/modular_computers/file_system/programs/generic/library.dm @@ -177,15 +177,16 @@ The answer was five and a half years -ZeroBits error_message = "Network Error: Connection to the Archive has been severed." return 1 - var/DBQuery/query = dbcon_old.NewQuery("SELECT * FROM library WHERE id=[sqlid]") + var/DBQuery/query = dbcon_old.NewQuery("SELECT id, category, title, author, content FROM library WHERE id=[sqlid]") // please work ;-; ~Vipo24 query.Execute() while(query.NextRow()) current_book = list( "id" = query.item[1], - "author" = query.item[2], + "category" = query.item[2], "title" = query.item[3], - "content" = query.item[4] + "author" = query.item[4], + "content" = query.item[5] ) break return 1