Mercurial > mm7
diff mm7text_ru.cpp @ 649:0e368c04acfb
Sleeping in a tavern
author | Nomad |
---|---|
date | Mon, 11 Mar 2013 23:43:52 +0200 |
parents | 35ce4761382c |
children | 2bf48d11d742 |
line wrap: on
line diff
--- a/mm7text_ru.cpp Mon Mar 11 23:32:27 2013 +0200 +++ b/mm7text_ru.cpp Mon Mar 11 23:43:52 2013 +0200 @@ -1166,8 +1166,8 @@ assert(strlen(str) < sizeof(buf)); int next_integer_token = 0; - bool integer_tokens_defined[2] = {false, false}; - int integer_tokens[2] = {0, 0}; + bool integer_tokens_defined[10] = {false, false, false, false, false, false, false, false, false, false}; + int integer_tokens[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; bool gender_token_defined = false; int gender_token = 0; @@ -1184,7 +1184,8 @@ if (src[2] != '[') goto _invalid_token; src += 3; // ^I[ - + + assert(next_integer_token < 10); if (sscanf(src, "%d", &integer_tokens[next_integer_token])) integer_tokens_defined[next_integer_token++] = true;