Fixed segfault when accessing alternate locales.
This commit is contained in:
parent
27cf750ead
commit
3b033554f7
1 changed files with 2 additions and 1 deletions
|
@ -263,7 +263,8 @@ static void wesnoth_setlocale(int category, std::string const &slocale,
|
|||
if (res) break;
|
||||
|
||||
if (!alternates || i == alternates->end()) break;
|
||||
locale = *(++i) + extra;
|
||||
locale = *i + extra;
|
||||
++i;
|
||||
}
|
||||
|
||||
if (res)
|
||||
|
|
Loading…
Add table
Reference in a new issue