skip empty cheats

This commit is contained in:
Brad Parker 2017-11-12 23:18:11 -05:00
parent e9acbbdf9e
commit 40a8388c29

View File

@ -97,7 +97,8 @@ void cheat_manager_apply_cheats(void)
cheat_info.enabled = true;
cheat_info.code = handle->cheats[i].code;
core_set_cheat(&cheat_info);
if (!string_is_empty(cheat_info.code))
core_set_cheat(&cheat_info);
}
}
runloop_msg_queue_push(msg_hash_to_str(MSG_APPLYING_CHEAT), 1, 180, true);