1
1
mirror of synced 2025-01-24 07:14:05 +01:00
This commit is contained in:
RyuMiya 2023-12-25 20:21:43 +08:00
parent ff9e5ec3ed
commit dab7a7abfe

View File

@ -199,7 +199,7 @@ SetCardConfigValue (toml_table_t *table, const char *key, CardKeybindings *cards
for (size_t top_i = 0; top_i < length; ++top_i) { for (size_t top_i = 0; top_i < length; ++top_i) {
toml_table_t* card_obj = toml_table_at(top_array, top_i); toml_table_t* card_obj = toml_table_at(top_array, top_i);
if (card_obj) { if (card_obj) {
CardKeybindings cardInfo = cards[i] = {}; CardKeybindings cardInfo = cards[top_i] = {};
cardInfo.card = readConfigString(card_obj, "CARD", ""); cardInfo.card = readConfigString(card_obj, "CARD", "");
toml_array_t *array = toml_array_in (card_obj, "READ_KEY"); toml_array_t *array = toml_array_in (card_obj, "READ_KEY");