Mercurial > mm7
diff Items.cpp @ 2495:7b076fe64f23
GetItemTextureFilename fix
author | Ritor1 |
---|---|
date | Wed, 17 Sep 2014 17:35:13 +0600 |
parents | b054ea5daf45 |
children | 5abd8fc8f1c6 |
line wrap: on
line diff
--- a/Items.cpp Tue Sep 16 17:48:58 2014 +0600 +++ b/Items.cpp Wed Sep 17 17:35:13 2014 +0600 @@ -2108,8 +2108,10 @@ int GetItemTextureFilename(char *pOut, signed int item_id, int index, int shoulder) { int result; // eax@2 + ITEM_EQUIP_TYPE pEquipType; result = 0; //BUG fn is void + pEquipType = pItemsTable->pItems[item_id].uEquipType; if ( item_id > 500 ) { switch ( item_id ) @@ -2187,7 +2189,7 @@ } } - switch (pItemsTable->pItems[item_id].uEquipType) + switch (pEquipType) { case EQUIP_ARMOUR: if ( !shoulder )