diff options
Diffstat (limited to 'core/object.h')
| -rw-r--r-- | core/object.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/object.h b/core/object.h index 806cf8160c..52c9c509ab 100644 --- a/core/object.h +++ b/core/object.h @@ -392,7 +392,8 @@ public: CONNECT_DEFERRED = 1, CONNECT_PERSIST = 2, // hint for scene to save this connection - CONNECT_ONESHOT = 4 + CONNECT_ONESHOT = 4, + CONNECT_REFERENCE_COUNTED = 8, }; struct Connection { @@ -443,8 +444,10 @@ private: struct Slot { + int reference_count; Connection conn; List<Connection>::Element *cE; + Slot() { reference_count = 0; } }; MethodInfo user; |
