I assure you that nowadays ships been designed to consider things like that.
The space between a wall and the hull has about 200 mm of fibreglass insulation and then a fire rated panel. Everything is compartmentalised, sprinklers are everywhere, as with hoses.
And everything that isn't the crew spaces, is basically just bare metal.
It is always odd when I have to go do welding gigs on cargo ships and I get told that basically outside of crew spaces and the engine compartments, there is like no fire prevention needed. I mostly operate on building sites and as an engineer nowadays, but I can't pass a well paying gig of ship maintenance - rare gig but god damn it pays well - and I'm used to lugging around 2 exstinguishers, blankets, water sprayer, and and organise the whole fire safety thing. But then I go to work with a cargo ship, and it is like... Steel and enamel paint as far as the eye can see. Which isn't that far really when you are inside the structure itself.
But the firepumps in a ship can put out so much water that it'll drown out even grease fires. I saw them testing the pumps at last maintenance I was with, and it took 3 dudes just hold the god damn hose at full pressure, and even then they struggled.
This is with modern ships mind you... Consider how crazy shit was when the ships had like coal fires, or were made of wood... Or wooden ships WITH steam engines. Iron steamships didn't become a thing until 1820s; and steamboats were a thing in mid-to-late 1700s.
.png)


