Action bars: fix Gearset/Job Gear Set icon clearing when first gear slot changes

Call LoadIconId() before reading slot IconId so the game populates the icon
from ApparentSlotType/ApparentActionId (e.g. job icon for GearSet). Without
this, when the first equipment slot in a gearset changes the cached IconId
can be 0 and the bar shows a blank icon.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-02-08 15:13:46 -05:00
parent 01426d3c30
commit db6e91afd1
+5
View File
@@ -122,6 +122,11 @@ namespace HSUI.Helpers
continue;
}
// Populate IconId from ApparentSlotType/ApparentActionId. Required for GearSet and other
// dynamic types: the game derives the job icon from the gearset (e.g. first equipment slot).
// Without this, when the first gear slot changes the cached IconId can be 0 and the bar shows a blank.
slot->LoadIconId();
bool usable = slot->IsSlotUsable(slot->ApparentSlotType, slot->ApparentActionId);
uint iconId = slot->IconId;
uint actionId = slot->ApparentActionId;