jfk EO-11110 #1 to prevent this you can use something likemesh=myFreeEntity(mesh)function myFreeEntity(m) if m<>0 then freeentity m return 0end function