mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-22 20:57:23 +01:00
[MIRROR] Fix Loadout items not properly initializing their own metadata on copy (#12545)
Co-authored-by: ARGUS <268038739+ARGUS-Memory@users.noreply.github.com>
This commit is contained in:
co-authored by
ARGUS
parent
16bca9fbcc
commit
da272eadf5
@@ -228,7 +228,10 @@ GLOBAL_LIST_EMPTY_TYPED(gear_datums, /datum/gear)
|
||||
if(confirm != "Yes")
|
||||
return TOPIC_HANDLED
|
||||
|
||||
pref.gear_list["[copy_to]"] = check_list_copy(active_gear_list)
|
||||
var/list/slot_copy = check_list_copy(active_gear_list)
|
||||
for(var/gear_name in slot_copy)
|
||||
slot_copy[gear_name] = check_list_copy(slot_copy[gear_name])
|
||||
pref.gear_list["[copy_to]"] = slot_copy
|
||||
return TOPIC_REFRESH
|
||||
|
||||
if("toggle_gear")
|
||||
|
||||
Reference in New Issue
Block a user