diff --git a/Source/stores.cpp b/Source/stores.cpp index d948516ab..6496747da 100644 --- a/Source/stores.cpp +++ b/Source/stores.cpp @@ -1590,16 +1590,15 @@ void S_StartStory() // 6A09E0: using guessed type char stextsize; // 6A6BB8: using guessed type int stextscrl; -BOOLEAN IdItemOk(ItemStruct *i) +BOOL IdItemOk(ItemStruct *i) { - BOOLEAN result; // al - - result = 0; - if (i->_itype != -1) { - if (i->_iMagical != ITEM_QUALITY_NORMAL) - result = !i->_iIdentified; + if (i->_itype == -1) { + return FALSE; + } + if (i->_iMagical == ITEM_QUALITY_NORMAL) { + return FALSE; } - return result; + return !i->_iIdentified; } void AddStoreHoldId(ItemStruct itm, int i) diff --git a/Source/stores.h b/Source/stores.h index 435d8aebc..07da28c1a 100644 --- a/Source/stores.h +++ b/Source/stores.h @@ -79,7 +79,7 @@ void S_StartHealer(); void S_ScrollHBuy(int idx); void S_StartHBuy(); void S_StartStory(); -BOOLEAN IdItemOk(ItemStruct *i); +BOOL IdItemOk(ItemStruct *i); void AddStoreHoldId(ItemStruct itm, int i); void S_StartSIdentify(); void S_StartIdShow();