From a695a0f015d6cad4d4da147a48b83f06bbc12e2b Mon Sep 17 00:00:00 2001 From: warriorstar-orion Date: Sun, 26 May 2024 10:02:47 -0400 Subject: [PATCH] fix: VV list display with values that are zero (#25618) --- code/datums/datumvars.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/datums/datumvars.dm b/code/datums/datumvars.dm index 5b159ce5e2c..6adc70e2d64 100644 --- a/code/datums/datumvars.dm +++ b/code/datums/datumvars.dm @@ -517,7 +517,7 @@ var/val if(IS_NORMAL_LIST(L) && !isnum(key)) val = L[key] - if(!val) + if(isnull(val)) val = key key = i @@ -952,7 +952,7 @@ message_admins("[key_name(usr)] has added [amount] units of [chosen_id] to \the [A]") else if(href_list["editreagents"]) - if(!check_rights(R_DEBUG|R_ADMIN)) + if(!check_rights(R_DEBUG|R_ADMIN)) return var/atom/A = locateUID(href_list["editreagents"])