I just played a custom siege battle. I lost almost all of my line infantry but luckily one unit manages to get on a wall. then I unleashed my cavalry and entered the center of the fort, killing the general first.
I now hold the center and I axpected to see troops moving towards the center to kill my cavalry units, yet the enemy troops are just fighting my unit of line infantry standing on the walls. Another line infantry unit was standing next to a building just shooting at my cavalry standing in the center but didn't care to charge them...

After 2 mins. I 'won' the battle... But would never have won if the AI would have focused on retaking the center of the fort. It was a rather silly bug. Obviously I didn't continue the battle to run down the 'routed' enemy...

Spoiler Alert, click show to read: