Fixed crash when using translation debugging (only happens if
DEBUG_TRANSLATIONS is defined).
This commit is contained in:
parent
418ccf284e
commit
00782180f7
@ -166,13 +166,14 @@ void CreditsScreen::loadedFromFile()
|
||||
}
|
||||
|
||||
int lineCount = 0;
|
||||
|
||||
#undef DEBUG_TRANSLATIONS // Enable to only see the translator credits
|
||||
#ifdef DEBUG_TRANSLATIONS
|
||||
int my_counter = 0;
|
||||
#endif
|
||||
// let's assume the file is encoded as UTF-16
|
||||
while (getWideLine( file, &line ))
|
||||
{
|
||||
#undef DEBUG_TRANSLATIONS // Enable to only see the translator credits
|
||||
#ifdef DEBUG_TRANSLATIONS
|
||||
static int my_counter = 0;
|
||||
if (my_counter > 0)
|
||||
break;
|
||||
my_counter++;
|
||||
|
Loading…
Reference in New Issue
Block a user