xres: Add missing braces.

Found by Clang's -Wmisleading-indentation.
This commit is contained in:
Augustin Cavalier 2017-12-01 14:24:45 -05:00
parent 6570684235
commit 220a7208a3

View File

@ -746,9 +746,10 @@ parse_resource_id(const char *toParse, ResourceID &resourceID,
resourceID.id = (negative ? -id : id);
if (*toParse == '\0') {
if (name)
if (name) {
*name = kDefaultResourceName;
return;
}
}
if (*toParse != ':')