The Penguin's season finale originally had a different fate in store for a doomed character, as the show adapted the storyline during production.
beat sheet
Victor Aguilar, the character who died in the finale, was always slated to meet his end, but the specifics of his demise evolved over time.
According to the showrunner, earlier versions of the finale script featured a different death scene for Aguilar, before the team settled on the version that made it to air.