From e019d0c8ef7b329966b0391aa8afa3e9d82cfb9b Mon Sep 17 00:00:00 2001 From: Neerti Date: Sat, 20 Oct 2018 03:35:44 -0400 Subject: [PATCH 1/2] Fixes new record bug. (#5685) --- code/datums/datacore.dm | 3 +++ code/modules/client/client procs.dm | 1 + html/images/no_image32.png | Bin 0 -> 257 bytes 3 files changed, 4 insertions(+) create mode 100644 html/images/no_image32.png diff --git a/code/datums/datacore.dm b/code/datums/datacore.dm index 765e1ee9e9..45d50ced1d 100644 --- a/code/datums/datacore.dm +++ b/code/datums/datacore.dm @@ -262,6 +262,9 @@ var/icon/charicon = cached_character_icon(H) front = icon(charicon, dir = SOUTH) side = icon(charicon, dir = WEST) + else // Sending null things through browse_rsc() makes a runtime and breaks the console trying to view the record. + front = icon('html/images/no_image32.png') + side = icon('html/images/no_image32.png') if(!id) id = text("[]", add_zero(num2hex(rand(1, 65536)), 4)) diff --git a/code/modules/client/client procs.dm b/code/modules/client/client procs.dm index 97fc1afdaf..c31482cb8b 100644 --- a/code/modules/client/client procs.dm +++ b/code/modules/client/client procs.dm @@ -331,6 +331,7 @@ 'html/images/sglogo.png', 'html/images/talisman.png', 'html/images/paper_bg.png', + 'html/images/no_image32.png', 'icons/pda_icons/pda_atmos.png', 'icons/pda_icons/pda_back.png', 'icons/pda_icons/pda_bell.png', diff --git a/html/images/no_image32.png b/html/images/no_image32.png new file mode 100644 index 0000000000000000000000000000000000000000..f5a9d1b52f03c81585d2fecca89c11ed896bc0c0 GIT binary patch literal 257 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1SJ1Ryj={WI14-?iy0WWg+Z8+Vb&Z8px|at z7sn8f<7cNi@*Pm%U@3h3f4|T9wXD;(s(kfH51PVz`0m=zKE|63cYS!b;n`)q85h@U zZrC2ytS|Z^v)ik0heTw$$MMB)_zo`n9qsPLA9cjK?8^^633f++earHKFLxKX^3C$| z`SfbVg`F!r1dbdij{L&)=+P7P%u_bOu?P5PDMj4(G4x*W#OElZVR{C;NYznB%cCCb zC05T52+l2dppwq_C@Lbl$^Th;_UZkH-<6cUx${8Z$|=zG6<5V?pz|3#UHx3vIVCg! E0DZA%&Hw-a literal 0 HcmV?d00001