They might shoot over the wall, if both units stand next to it.
It's an angle problem. Not a bug, but reasonably realistic ballistic model

McHrozni