It's called "replay leading to this bug" because it's before the headquarter is destroyed. ;) It's likely your changes in the battle code cause the desyncs. I've tested it with bzr-trunk-5020. It runs fine until the end.
I think I know where the problem is. The military influence of the computerplayer is 0 before the headquarter is destroyed. So it is 64636 after destroying it. I will fix the loading code. :)
It's called "replay leading to this bug" because it's before the headquarter is destroyed. ;) It's likely your changes in the battle code cause the desyncs. I've tested it with bzr-trunk-5020. It runs fine until the end.
I think I know where the problem is. The military influence of the computerplayer is 0 before the headquarter is destroyed. So it is 64636 after destroying it. I will fix the loading code. :)