Merge pull request #34265 from tgstation/welostcountofhowmanycookieswerespawnedshutitalldown

fixes safety check
This commit is contained in:
oranges
2018-01-12 09:12:13 +13:00
committed by CitadelStationBot
parent b2021912d7
commit cfa8b8bad4
+1 -1
View File
@@ -187,7 +187,7 @@ Versioning
"gun_fired" = 2)
*/
/datum/controller/subsystem/blackbox/proc/record_feedback(key_type, key, increment, data, overwrite)
if(sealed || !key_type || !istext(key) || !isnum(increment) || !data)
if(sealed || !key_type || !istext(key) || !isnum(increment || !data))
return
var/datum/feedback_variable/FV = find_feedback_datum(key, key_type)
switch(key_type)