for (var i = 0; i < knifeqty; i++) safe_delete(knife[i]);