diff --git a/scripts/scr_librarium/scr_librarium.gml b/scripts/scr_librarium/scr_librarium.gml index f201465dcb..77d4faa323 100644 --- a/scripts/scr_librarium/scr_librarium.gml +++ b/scripts/scr_librarium/scr_librarium.gml @@ -103,7 +103,7 @@ function scr_librarium_gui(){ set_chapter_arti_data(); } var base_type = cur_arti.determine_base_type(); - if (arti_data && base_type!="device"){ + if (base_type!="device" && is_struct(arti_data)){ if (arti_data.armour_value != 0) { tip2 += $"{arti_data.armour_value} Armour#"; } @@ -173,7 +173,7 @@ function scr_librarium(){ draw_set_halign(fa_left); draw_set_color(c_gray); draw_set_font(fnt_40k_30b); - draw_text_transformed(xx + 336 + 16, yy + 66, string_hash_to_newline("Librarium"), 1, 1, 0); + draw_text_transformed(xx + 336 + 16, yy + 66, "Librarium", 1, 1, 0); draw_text_transformed(xx + 336 + 16, yy + 100, string_hash_to_newline("Chief " + string(obj_ini.role[100, 17]) + " " + string(obj_ini.name[0, 4])), 0.6, 0.6, 0); draw_set_font(fnt_40k_14); } @@ -183,7 +183,7 @@ function scr_librarium(){ draw_set_halign(fa_left); draw_set_color(c_gray); draw_set_font(fnt_large); - draw_text_transformed(xx + 336 + 16, yy + 66, string_hash_to_newline("Librarium"), 1, 1, 0); + draw_text_transformed(xx + 336 + 16, yy + 66, "Librarium", 1, 1, 0); draw_text_transformed(xx + 336 + 16, yy + 100, string_hash_to_newline("Adept " + string(obj_controller.adept_name)), 0.6, 0.6, 0); draw_set_font(fnt_40k_14); }