when i diselect entity, i call function
void HlSpriteHideModel(ENTITY* ent)
{
if (ent.sHandSprt != NULL)
{
ENTITY* sprEnt = ptr_for_handle(ent.sHandSprt);
ent_remove(sprEnt);
ent.sHandSprt = NULL;
}
}
if i comment this function's call, number of functions on the debug panel is 18 and it undepends from how many times i select/diselect bots
if i uncomment this function's call, number of functions increased depending on unmber of times, when i diselect entity
why this function can do that, i dont have loops there?