Fixed bug where DB writing for equipment would be toggled off if gearset was nil for some reason. Added in a property change to get the bottom class icon to refresh showing the new class.

This commit is contained in:
Filip Maj 2016-03-12 10:01:41 -05:00
parent e409d3792c
commit f71b4ef031
3 changed files with 36 additions and 0 deletions

View file

@ -77,6 +77,7 @@ function loadGearset(player, classId)
gearset = player:getGearset(classId);
if gearset == nil then
player:getEquipment():ToggleDBWrite(true);
return;
end