Adds a CRASH on invalid calls to record_feedback

This commit is contained in:
Jordan Brown
2017-12-03 13:29:52 -05:00
committed by GitHub
parent 74e3d9b1c9
commit b6a93ead6d
+2
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)