Skip to content

Commit

Permalink
Fix compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
xezon committed Mar 27, 2024
1 parent 7c24e27 commit 2f5ae7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/game/common/skirmishbattlehonors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ void Populate_Skirmish_Battle_Honors()
}

int wins = battle_honors->Get_Wins();
str.Format(L"%10d", wins);
str.Format(U_CHAR("%10d"), wins);
if (wins >= 10000) {
image = g_theMappedImageCollection->Find_Image_By_Name("Domination_10000");
Insert_Battle_Honor(listbox, image, true, DOMINATION, &row, &column, 0, wins);
Expand Down Expand Up @@ -427,8 +427,8 @@ void Battle_Honor_Tooltip(GameWindow *listbox, WinInstanceData *instance, unsign
str = g_theGameText->Fetch("TOOLTIP:BattleHonors", nullptr);
g_theMouse->Set_Cursor_Tooltip(str, -1, 0, 1.0f);
} else {
honor = (int)Gadget_List_Box_Get_Item_Data(listbox, row, column);
score = (int)Gadget_List_Box_Get_Item_Data(listbox, row - 1, column);
honor = reinterpret_cast<int>(Gadget_List_Box_Get_Item_Data(listbox, row, column));
score = reinterpret_cast<int>(Gadget_List_Box_Get_Item_Data(listbox, row - 1, column));
if (honor == 0) {
str = g_theGameText->Fetch("TOOLTIP:BattleHonors", nullptr);
g_theMouse->Set_Cursor_Tooltip(str, -1, nullptr, 1.0f);
Expand Down

0 comments on commit 2f5ae7b

Please sign in to comment.