init polyobject thinker->references to 0

otherwise they wont get removed alot of the time
This commit is contained in:
Alug committed 2024-11-27 23:00:32 +01:00
1 parent f973e6cd72
commit 8662648ef5
1 file changed
+1 -1
+1 -1
View File
@@ -154,7 +154,7 @@ FUNCINLINE static ATTRINLINE void PolyObj_AddThinker(thinker_t *th)
th->prev = &thinkercap;
thinkercap.next = th;
//th->references = 0;
th->references = 0;
th->cachable = false; // not initialising this made the mobjcache die thx!
}