i dont understand what your saying sorry. i think it was because either a loop never stopped or units were not released from memory after they died and the memory was reallocated to a new unit? or maybe an id was reused? and because it was not destroyed properly due to some kind of sequence brake it caused an access violation because the same id or memory was being reallocated to a new unit/model?
all this is made worse by the fact i dont know what im doing and nobody is helping me
but i made a hacky fix so it seems to work now