Fix incorrect parsing of emitter config

scene_man
En Yi 2023-11-18 20:02:00 +08:00
parent be75263c2c
commit cb67dcf81f
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ static bool parse_emitter_info(char* emitter_info_str, EmitterConfig_t* conf)
if (data_count == 8)
{
conf->type = (emitter_type == 'b') ? EMITTER_BURST : EMITTER_UNKNOWN;
conf->one_shot = (one_shot == 1);
conf->one_shot = (one_shot == '1');
}
return data_count == 8;
}