mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
[MIRROR] prevent out of index access on tgui spamming the rd console (#9404)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
cb38cd05f5
commit
8d25228ed5
@@ -175,8 +175,9 @@ using metal and glass, it uses glass and reagents (usually sulphuric acid).
|
||||
return
|
||||
|
||||
/obj/machinery/r_n_d/circuit_imprinter/proc/removeFromQueue(var/index)
|
||||
queue.Cut(index, index + 1)
|
||||
return
|
||||
if(queue.len >= index)
|
||||
queue.Cut(index, index + 1)
|
||||
return
|
||||
|
||||
//CHOMPAdd Start, Locked Designs
|
||||
/obj/machinery/r_n_d/circuit_imprinter/proc/allowedToBuild(var/datum/design/D)
|
||||
|
||||
@@ -198,8 +198,9 @@
|
||||
return
|
||||
|
||||
/obj/machinery/r_n_d/protolathe/proc/removeFromQueue(var/index)
|
||||
queue.Cut(index, index + 1)
|
||||
return
|
||||
if(queue.len >= index)
|
||||
queue.Cut(index, index + 1)
|
||||
return
|
||||
|
||||
//CHOMPAdd Start, Locked Designs
|
||||
/obj/machinery/r_n_d/protolathe/proc/allowedToBuild(var/datum/design/D)
|
||||
|
||||
Reference in New Issue
Block a user