Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert CatalogItem::GetTranslation() optimization
Partially reverts 1ed2ac3. Don't specialize GetTranslation() (i.e. n=0) to return a reference. It doesn't have measurable effect after the other optimizations and it causes crashes in code that implicitly assumes that GetTranslation() is safe to call e.g. on non-translation files too (see e.g. 6b893be). It's just not worth the risk.
- Loading branch information