Skip to content

Commit

Permalink
ADD: fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
wh1t3lord committed Sep 24, 2024
1 parent 6dd9763 commit 2e45ba4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion src/xrGame/ImUtils/ImUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ struct {
memcpy_s(result, sizeof(result), pTranslatedName, strlen(pTranslatedName));
}

return result;
return xr_strdup(result);
}

return "unknown";
Expand Down
5 changes: 0 additions & 5 deletions src/xrGame/ui/UIActorMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,6 @@ void CUIActorMenu::SetInvBox(CInventoryBox* box)
}
}

const CUIDragDropListEx* CUIActorMenu::GetSlotList(u16 slot_idx) const
{
return GetSlotList(slot_idx);
}

void CUIActorMenu::SetMenuMode(EMenuMode mode)
{
SetCurrentItem( nullptr );
Expand Down
2 changes: 0 additions & 2 deletions src/xrGame/ui/UIActorMenu.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,6 @@ class CUIActorMenu : public CUIDialogWnd,
void SetInvBox (CInventoryBox* box);
CInventoryBox* GetInvBox () {return m_pInvBox;};

const CUIDragDropListEx* GetSlotList(u16 slot_idx) const;

private:
void PropertiesBoxForSlots (PIItem item, bool& b_show);
void PropertiesBoxForWeapon (CUICellItem* cell_item, PIItem item, bool& b_show);
Expand Down

0 comments on commit 2e45ba4

Please sign in to comment.