xres: fix extracting resources

Regression introduced in hrev51641 which added braces to fix a
misleading indentation warning. The code was behaving correctly and the
indentation was wrong.

Change-Id: I378ff3ed6209917b44387fc29459b6e492c5eb9c
This commit is contained in:
PulkoMandy
2023-07-18 21:26:03 +02:00
parent 8e8250e9dd
commit 5a86b40e33
+2 -3
View File
@@ -746,10 +746,9 @@ parse_resource_id(const char *toParse, ResourceID &resourceID,
resourceID.id = (negative ? -id : id);
if (*toParse == '\0') {
if (name) {
if (name)
*name = kDefaultResourceName;
return;
}
return;
}
if (*toParse != ':')