Merge pull request #4223 from Citadel-Station-13/upstream-merge-33243

[MIRROR] Adds a CRASH on invalid calls to record_feedback
This commit is contained in:
deathride58
2017-12-05 20:22:38 +00:00
committed by GitHub

View File

@@ -218,6 +218,8 @@ Versioning
FV.json["data"]["[pos]"] = list() //in 512 "pos" can be replaced with "[FV.json["data"].len+1]"
for(var/i in data)
FV.json["data"]["[pos]"]["[i]"] = "[data[i]]" //and here with "[FV.json["data"].len]"
else
CRASH("Invalid feedback key_type: [key_type]")
/datum/controller/subsystem/blackbox/proc/record_feedback_recurse_list(list/L, list/key_list, increment, depth = 1)
if(depth == key_list.len)