mirror of
https://github.com/Sandstorm-Station/Sandstorm-Station-13.git
synced 2026-08-28 07:39:38 +01:00
Merge pull request #3905 from Citadel-Station-13/upstream-merge-32570
[MIRROR] Checks for nulls in weakrefs
This commit is contained in:
@@ -16,4 +16,4 @@
|
||||
|
||||
/datum/weakref/proc/resolve()
|
||||
var/datum/D = locate(reference)
|
||||
return D.weak_reference == src? D : null
|
||||
return (!QDELETED(D) && D.weak_reference == src) ? D : null
|
||||
|
||||
Reference in New Issue
Block a user