Prevent IndexOutOfBoundsException when using translation patches
When applying a fan translation patch (e.g., Traducciones-Kurain/PWTrilogy-ESP), the game adds a new language entry. This causes the language value read from languageAddr (0x12D4) to exceed the expected range (> 6). Since the combobox only supports up to index 6, accessing index 7 or higher throws an IndexOutOfBoundsException, preventing the combobox from rendering.
If the language value exceeds the size of textList, default it to 0 to ensure the combobox always renders safely.
I’m not very familiar with savegame handling, but a possible improvement could be to read all textValues directly from the game instead of hardcoding them in arrays. I’m not sure if this is technically possible, but if it is, it could make this solution more flexible.