mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-29 00:34:33 +01:00
Update txtp.c
Fix "mode" keyval parse to else-if condition so other conditions don't fall through it.
This commit is contained in:
parent
93838471df
commit
f26b99b6cb
@ -316,7 +316,7 @@ static int parse_keyval(txtp_header * txtp, const char * key, const char * val)
|
||||
else if (0==strcmp(key,"loop_end_segment")) {
|
||||
if (!parse_num(val, &txtp->loop_end_segment)) goto fail;
|
||||
}
|
||||
if (0==strcmp(key,"mode")) {
|
||||
else if (0==strcmp(key,"mode")) {
|
||||
if (0==strcmp(val,"layers")) {
|
||||
txtp->is_layered = 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user