Browse Source

Fixing bug in GTRANS

Joel Bodenmann 4 years ago
parent
commit
249ffe781f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/gtrans/gtrans.c

+ 2 - 2
src/gtrans/gtrans.c

@@ -29,7 +29,7 @@ const char* gtransString(const char* string)
29 29
 	size_t i = 0;
30 30
 	while (1) {
31 31
 		// Prevent overflow
32
-		if (i >= _languageBase->numEntries-1) {
32
+		if (i >= _languageBase->numEntries) {
33 33
 			return string;
34 34
 		}
35 35
 
@@ -43,7 +43,7 @@ const char* gtransString(const char* string)
43 43
 	}
44 44
 
45 45
 	// Make sure that the index exists in the current language table
46
-	if (i >= _languageCurrent->numEntries-1) {
46
+	if (i >= _languageCurrent->numEntries) {
47 47
 		return string;
48 48
 	}
49 49