Browse Source

Avoid a strcpy

if _iIdentified is true, the first strcpy was not usefull
pull/1790/head
Mathieu Maret 5 years ago committed by Anders Jenbo
parent
commit
a87f1d8d2e
  1. 2
      Source/inv.cpp

2
Source/inv.cpp

@ -2120,11 +2120,11 @@ char CheckInvHLight()
} else if (pi->_iMagical == ITEM_QUALITY_UNIQUE) {
infoclr = COL_GOLD;
}
strcpy(infostr, pi->_iName);
if (pi->_iIdentified) {
strcpy(infostr, pi->_iIName);
PrintItemDetails(pi);
} else {
strcpy(infostr, pi->_iName);
PrintItemDur(pi);
}
}

Loading…
Cancel
Save