Mercurial > wow > askmrrobot
comparison amr-constants.lua @ 28:4317e56e0a91
Fixed some crash issues with items and gems
| author | Adam tegen <adam.tegen@gmail.com> |
|---|---|
| date | Fri, 17 Oct 2014 00:08:54 -0500 |
| parents | eca0f3b6d141 |
| children | 44c285acfff0 |
comparison
equal
deleted
inserted
replaced
| 27:0eb7f9a8e9a2 | 28:4317e56e0a91 |
|---|---|
| 21 --item.level = tonumber(parts[9]) | 21 --item.level = tonumber(parts[9]) |
| 22 item.upgradeId = tonumber(parts[10]) | 22 item.upgradeId = tonumber(parts[10]) |
| 23 --item.difficultyId = tonumber(parts[11]) | 23 --item.difficultyId = tonumber(parts[11]) |
| 24 | 24 |
| 25 local numBonuses = tonumber(parts[12]) | 25 local numBonuses = tonumber(parts[12]) |
| 26 if numBonuses > 0 then | 26 if numBonuses and numBonuses > 0 then |
| 27 item.bonusIds = {} | 27 item.bonusIds = {} |
| 28 for i = 13, 12 + numBonuses do | 28 for i = 13, 12 + numBonuses do |
| 29 table.insert(item.bonusIds, tonumber(parts[i])) | 29 table.insert(item.bonusIds, tonumber(parts[i])) |
| 30 end | 30 end |
| 31 end | 31 end |
