One of the officers' jobs was to decide who could leave the army. The full meaning of this statement can be made explicit. (See: [[rc://en/ta/man/translate/figs-explicit]])
If a man has not dedicated his house and he dies in battle, another man could dedicate the house. Alternate translation: "so that he will not die in battle, because if he dies, another man could dedicate it"