I’m glad to hear that what I was thinking was not correct. I had been under the impression that traditional Roman Catholic doctrine holds that the Roman Catholic Church is the one and only Church, outside of which there is no salvation.
First, I’m not speaking of the Roman Catholic Church, but rather the Catholic Church founded by Christ.
Second, your logic is failing you: “outside the Church there is no salvation” does not mean “inside the Church everyone is saved automatically.”
A Venn diagram might help.