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

This commit is contained in:
Trevius
2014-12-19 15:46:01 -06:00
parent fce52d7186
commit ef287bc857
9 changed files with 42 additions and 44 deletions
+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);