mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 18:02:57 +00:00
Calling WEAKREF with a /datum/weakref returns the input (#34315)
This commit is contained in:
committed by
CitadelStationBot
parent
ade3ded854
commit
9bd92eddf7
@@ -1,5 +1,7 @@
|
||||
/proc/WEAKREF(datum/input)
|
||||
if(istype(input) && !QDELETED(input))
|
||||
if(istype(input, /datum/weakref))
|
||||
return input
|
||||
if(!input.weak_reference)
|
||||
input.weak_reference = new /datum/weakref(input)
|
||||
return input.weak_reference
|
||||
|
||||
Reference in New Issue
Block a user