A senior fire official testified Wednesday in the Ghost Ship trial that whoever changes a building's use is responsible for compliance with safety codes intended to save lives in the event of a blaze.