In "The Hunter", you get the fragata latina as a temporary replacement for your own ship, you talk to Emilio Soares to tell him to look after your ship while you're away, then you sail to San Salvador, track down Arturo Campos' ship and defeat it, track down Campos himself and defeat him, then return to Sao Jorge, where Augusto Queiroz is supposed to say something to you and then report to the governor.
Initially Emilio Soares must be one of your active companions. When you leave him to look after your ship, he's removed from both your companions and your passenger list (because he's about to be abducted by Johan Elting). If you then make one of your own officers a companion to fill the now vacant slot, Augusto Queiroz can't assign himself as an officer after your activities at San Salvador. He won't then appear at Sao Jorge, so he won't report to the governor, so you can't get the next piece of quest when you visit the governor.
The problem is this line:
I know what this means because of solving the opposite problem, so to speak, for Hornblower. If you do the "Help the Boatswain" side quest, Fred Bob tries to assign himself as a companion, and originally forced himself into slot 2. This was a problem if you had a quest-critical officer in slot 2 because Hornblower, being a naval officer, isn't allowed to re-assign his companions. Putting "-1" into Fred Bob's "SetOfficersIndex" line solved that.
So I suggest changing this line to:
That should make Augusto Queiroz force his way into becoming an active companion. Of course, if you're silly enough to replace him again then you'll still get stuck when you return to Sao Jorge, but at least it means you actively have to mess up. Whereas at the moment, you can mess up inadvertently if you don't realise that the slot left vacant by Emilio Soares has to stay vacant. (It also means that you can fill that slot and thus have a full set of companions while boarding Arturo Campos' ship, because Augusto Queiroz doesn't become a companion until you're ashore at White Reefs.
Initially Emilio Soares must be one of your active companions. When you leave him to look after your ship, he's removed from both your companions and your passenger list (because he's about to be abducted by Johan Elting). If you then make one of your own officers a companion to fill the now vacant slot, Augusto Queiroz can't assign himself as an officer after your activities at San Salvador. He won't then appear at Sao Jorge, so he won't report to the governor, so you can't get the next piece of quest when you visit the governor.
The problem is this line:
Code:
SetOfficersIndex(PChar, -1, GetCharacterIndex("Augusto Queiroz"));
So I suggest changing this line to:
Code:
SetOfficersIndex(PChar, 1, GetCharacterIndex("Augusto Queiroz"));