- fixed a few issues.

This commit is contained in:
Christoph Oelckers 2019-11-28 20:11:27 +01:00
parent 59ebb10512
commit 1f1b927b6b
5 changed files with 22 additions and 14 deletions

View file

@ -244,18 +244,20 @@ bool FStringTable::ParseLanguageCSV(int lumpnum, const TArray<uint8_t> &buffer)
if (filtercol > -1)
{
auto filterstr = row[filtercol];
auto filter = filterstr.Split(" ", FString::TOK_SKIPEMPTY);
bool ok = false;
for (auto &entry : filter)
if (filterstr.IsNotEmpty())
{
if (validFilter(entry))
auto filter = filterstr.Split(" ", FString::TOK_SKIPEMPTY);
bool ok = false;
for (auto& entry : filter)
{
ok = true;
break;
if (validFilter(entry))
{
ok = true;
break;
}
}
if (!ok) continue;
}
if (!ok) continue;
continue;
}
#endif