From 428922cce43a9242139964cf364d67bc77acbf57 Mon Sep 17 00:00:00 2001 From: Kyle Spier-Swenson Date: Tue, 10 Oct 2017 20:17:47 -0700 Subject: [PATCH] Fixes VVing associated values in lists when the value was a number. (#31511) Bug added by @cyberboss in #30249 --- code/modules/admin/verbs/modifyvariables.dm | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/code/modules/admin/verbs/modifyvariables.dm b/code/modules/admin/verbs/modifyvariables.dm index 32d4e753da8..3e59124225d 100644 --- a/code/modules/admin/verbs/modifyvariables.dm +++ b/code/modules/admin/verbs/modifyvariables.dm @@ -433,11 +433,11 @@ GLOBAL_PROTECT(VVpixelmovement) to_chat(src, "Variable appears to be [uppertext(default)].") - to_chat(src, "Variable contains: [L[index]]") + to_chat(src, "Variable contains: [variable]") if(default == VV_NUM) var/dir_text = "" - var/tdir = L[index] + var/tdir = variable if(tdir > 0 && tdir < 16) if(tdir & 1) dir_text += "NORTH" @@ -451,11 +451,8 @@ GLOBAL_PROTECT(VVpixelmovement) if(dir_text) to_chat(usr, "If a direction, direction is: [dir_text]") - var/original_var - if(assoc) - original_var = L[assoc_key] - else - original_var = L[index] + var/original_var = variable + if (O) L = L.Copy() var/class