The morale of ground units have sometimes lowered to 100, and many other times has not, when a commander of the unit either retires, is killed, or is replaced.
The function number - N/A
The complete error text - N/A
The window affected - Ground Forces
Conventional or TN start - Conventional
Random or Real Stars - Real
Is your decimal separator a comma? No, period
Is the bug is easy to reproduce, intermittent or a one-off?
Depends on what the intended process is meant to be. I have manually replaced a commander and morale remains at the higher figure, e.g. 140. Three times, the retirement or death of a major commanding a company reset that company's morale to 100 from some higher number (between 150-200 I believe). After I noticed it, I began tracking it and have not seen a reset to 100 again. I've had commanders killed by accident, retire from a post, and be manually removed by me without a reset. So, if the intended mechanic is to reset on every commander change of any type, it isn't happening. If the intended mechanic is for it never to change, it did, but unfortunately I don't know precisely when or what caused the morale reset. Or anything in between. I'm 95% certain the units in question did not go through a full production cycle without any commander at all. I also thought maybe there was an upper limit on morale that was passed, but I have other units currently with higher morale figures than that of the 'reset' units at the time.
It is intended to reset. Will bring this up with Steve to fix the non-WAI behaviour.