A year earlier , Warner took a $ 25 million hit when it moved the set of '' Troy '' to Mexico from Morocco after studio executives feared that unrest in the Middle East would endanger the cast and crew .