I feel like your ignorance wasted OUR/ my time, not yours. To me it has been pretty clear since the beginning of the thread that you need ptr_/ent_remove to release the memory, and all this talk that the provided solutions are "NOT ALLOWED" is nonsense. The memory problem should occur on the day that you've written this code which means that the rest cannot be a full game yet, only a rather simple prototype. Using ents[i] as a pointer and not a "direct" reference is a very easy solution, you're just being stubborn here.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends