Humm, interesting and odd.
In my savegame, i did not see the ai that had the error under a vassal agreement.
I was able to replicate the issue when i moved all troops out of the city and back in .
Eventually i just had an if statement which makes the change value to 0 if the current military happiness is 0 and the change value passed is -1.
Silly but...
I 9nly saw the military happiness changes on setxy. I have not checked where are all the calls for it.
In my savegame, i did not see the ai that had the error under a vassal agreement.
I was able to replicate the issue when i moved all troops out of the city and back in .
Eventually i just had an if statement which makes the change value to 0 if the current military happiness is 0 and the change value passed is -1.
Silly but...
I 9nly saw the military happiness changes on setxy. I have not checked where are all the calls for it.