Mercurial > wow > askmrrobot
comparison AskMrRobot-Serializer/AskMrRobot-Serializer.lua @ 75:dfea9df158c1 v30
small bug fix to item upgrades
| author | yellowfive |
|---|---|
| date | Thu, 19 Nov 2015 12:15:46 -0800 |
| parents | 304d7ebb8e30 |
| children | b1a30665d511 |
comparison
equal
deleted
inserted
replaced
| 74:01854bbdc1c7 | 75:dfea9df158c1 |
|---|---|
| 608 end | 608 end |
| 609 table.sort(item.bonusIds) | 609 table.sort(item.bonusIds) |
| 610 end | 610 end |
| 611 | 611 |
| 612 -- if there is another part after bonus ids, that is the upgrade id | 612 -- if there is another part after bonus ids, that is the upgrade id |
| 613 if #parts >= 14 + numBonuses then | 613 if numBonuses and #parts >= 14 + numBonuses then |
| 614 local upgradeId = tonumber(parts[14 + numBonuses]) | 614 local upgradeId = tonumber(parts[14 + numBonuses]) |
| 615 item.upgradeId = upgradeId and upgradeId or 0 | 615 item.upgradeId = upgradeId and upgradeId or 0 |
| 616 else | 616 else |
| 617 item.upgradeId = 0 | 617 item.upgradeId = 0 |
| 618 end | 618 end |
