Skip to content

Commit

Permalink
xrGame/EliteDetector.cpp: forgot to use a constant in the UI item name
Browse files Browse the repository at this point in the history
inventory_item.cpp: the same

Thanks @GermanAizek (#1357)
  • Loading branch information
Xottab-DUTY committed Jul 18, 2023
1 parent 5f05a6e commit 5aeb9f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/xrGame/EliteDetector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void CEliteDetector::UpdateAf()
if (pAf->H_Parent())
continue;

ui().RegisterItemToDraw(pAf->Position(), "af_sign");
ui().RegisterItemToDraw(pAf->Position(), AF_SIGN);

if (pAf->CanBeInvisible())
{
Expand Down
4 changes: 2 additions & 2 deletions src/xrGame/inventory_item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ void CInventoryItem::Load(LPCSTR section)
m_ItemCurrPlace.base_slot_id = (sl == u32(-1)) ? 0 : (sl + 1);

// Description
if (pSettings->line_exist(section, "description"))
if (pSettings->line_exist(section, DESCRIPTION_KEY))
m_Description = StringTable().translate(pSettings->r_string(section, DESCRIPTION_KEY));
else
m_Description = "";
Expand All @@ -135,7 +135,7 @@ void CInventoryItem::ReloadNames()
{
m_name = StringTable().translate(pSettings->r_string(m_object->cNameSect(), INV_NAME_KEY));
m_nameShort = StringTable().translate(pSettings->r_string(m_object->cNameSect(), INV_NAME_SHORT_KEY));
if (pSettings->line_exist(m_object->cNameSect(), "description"))
if (pSettings->line_exist(m_object->cNameSect(), DESCRIPTION_KEY))
m_Description = StringTable().translate(pSettings->r_string(m_object->cNameSect(), DESCRIPTION_KEY));
else
m_Description = "";
Expand Down

0 comments on commit 5aeb9f8

Please sign in to comment.