Merge pull request #33243 from tgstation/Cyberboss-patch-5

Adds a CRASH on invalid calls to record_feedback
This commit is contained in:
Leo
2017-12-04 16:52:58 -02:00
committed by CitadelStationBot
parent e7da4615d6
commit 0f76084794
+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)