Codechange: replace x.size() > 0 with !x.empty()

This commit is contained in:
Rubidium
2023-10-20 20:18:31 +02:00
committed by rubidium42
parent c9276c2959
commit f16399f4c9
15 changed files with 23 additions and 23 deletions

View File

@@ -5240,7 +5240,7 @@ static void NewSpriteGroup(ByteReader *buf)
}
group->default_group = GetGroupFromGroupID(setid, type, buf->ReadWord());
group->error_group = ranges.size() > 0 ? ranges[0].group : group->default_group;
group->error_group = ranges.empty() ? group->default_group : ranges[0].group;
/* nvar == 0 is a special case -- we turn our value into a callback result */
group->calculated_result = ranges.empty();