From a87f1d8d2e86825c63601858638fc46153246427 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Sat, 1 May 2021 00:27:41 +0200 Subject: [PATCH] Avoid a strcpy if _iIdentified is true, the first strcpy was not usefull --- Source/inv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/inv.cpp b/Source/inv.cpp index aa83fdc5e..5a0edcaad 100644 --- a/Source/inv.cpp +++ b/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); } }