diff --git a/src/CommandFormats.hh b/src/CommandFormats.hh index 999577d1..53668eca 100644 --- a/src/CommandFormats.hh +++ b/src/CommandFormats.hh @@ -5244,7 +5244,7 @@ struct G_IdentifyResult_BB_6xB9 { struct G_SyncCardTradeState_GC_Ep3_6xBA { G_ClientIDHeader header; - le_uint16_t what; // Low byte must be < 9; this indexes into a jump table + le_uint16_t what; // Low byte must be < 9; this indexes into a handler table le_uint16_t unknown_a2; le_uint32_t unknown_a3; le_uint32_t unknown_a4; diff --git a/src/Episode3/DataIndex.cc b/src/Episode3/DataIndex.cc index 1b41da14..82956fc8 100644 --- a/src/Episode3/DataIndex.cc +++ b/src/Episode3/DataIndex.cc @@ -838,22 +838,8 @@ void CardDefinition::decode_range() { } string name_for_rarity(CardRarity rarity) { - static const vector names({ - "N1", - "R1", - "S", - "E", - "N2", - "N3", - "N4", - "R2", - "R3", - "R4", - "SS", - "D1", - "D2", - "INVIS", - }); + static const vector names( + {"N1", "R1", "S", "E", "N2", "N3", "N4", "R2", "R3", "R4", "SS", "D1", "D2"}); try { return names.at(static_cast(rarity) - 1); } catch (const out_of_range&) {