Fixed Armor Tinting (players and NPCs) that was broken during a previous update.

This commit is contained in:
Trevius committed 2014-12-19 15:46:01 -06:00
1 parent fce52d7186
commit ef287bc857
9 files changed
+42 -44

No files matched your search

+1 -1
View File
@@ -476,7 +476,7 @@ void NPC::CheckMinMaxLevel(Mob *them)
if(themlevel < (*cur)->min_level || themlevel > (*cur)->max_level)
{
material = Inventory::CalcMaterialFromSlot((*cur)->equip_slot);
if(material != 0xFF)
if (material != _MaterialInvalid)
SendWearChange(material);
cur = itemlist.erase(cur);