I think you misunderstood what was happening in the battle scene. The grain was torched, not the gold. The general definitely said that the gold made it safely back to King’s Landing. Probably many other commenters have already mentioned this, though.