init polyobject thinker->references to 0

otherwise they wont get removed alot of the time
This commit is contained in:
Alug committed 2024-11-26 22:31:58 +01:00
1 parent eba4601c73
commit f866b86397
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!
}