Hi Folks,
I kept have memory leaks despite having ptr_remove().
I am not sure if I am checking the right way, but what I did was I ran the game while looking at the resources used in task manger and it just kept increasing.
here is the short code I wrote.
while(1)
{
ENTITY* enemy = ent_create("unitGolem.wmb", vector(startX,laneY[5],0), putGolem);
ptr_remove(enemy);
wait(10);
}
Any clue on what I did wrongly? Thanks for looking.