Merge pull request #15892 from SandPoot/let's-sing-the-reference-clearing-song

Solves some harddels
This commit is contained in:
Lin
2022-12-12 19:11:49 -07:00
committed by GitHub
41 changed files with 375 additions and 213 deletions
+2
View File
@@ -0,0 +1,2 @@
/// Checks if potential_weakref is a weakref of thing.
#define IS_WEAKREF_OF(thing, potential_weakref) (istype(thing, /datum) && !isnull(potential_weakref) && thing.weak_reference == potential_weakref)