Fix units not being disbanded correctly
The issue was using deleteAt instead of delete.
Also changes a bunch of lets by consts because they are consts not
lets.
Closes #4570 (closed).
Edited by wkwk
The issue was using deleteAt instead of delete.
Also changes a bunch of lets by consts because they are consts not
lets.
Closes #4570 (closed).