Fixing bug in GTRANS
This commit is contained in:
parent
39c13d1645
commit
249ffe781f
1 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@ const char* gtransString(const char* string)
|
|||
size_t i = 0;
|
||||
while (1) {
|
||||
// Prevent overflow
|
||||
if (i >= _languageBase->numEntries-1) {
|
||||
if (i >= _languageBase->numEntries) {
|
||||
return string;
|
||||
}
|
||||
|
||||
|
@ -43,7 +43,7 @@ const char* gtransString(const char* string)
|
|||
}
|
||||
|
||||
// Make sure that the index exists in the current language table
|
||||
if (i >= _languageCurrent->numEntries-1) {
|
||||
if (i >= _languageCurrent->numEntries) {
|
||||
return string;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue