Skip to content

Commit

Permalink
Changed corpse iterator starting from 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Oen44 committed Jun 2, 2019
1 parent ea6fdf2 commit 04d880b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion upgrade_system_const.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local UPGRADE_SYSTEM_VERSION = "2.2.0"
local UPGRADE_SYSTEM_VERSION = "2.2.1"
print(">> Loaded Upgrade System v" .. UPGRADE_SYSTEM_VERSION)

ITEM_UPGRADE_CRYSTAL = 1
Expand Down
2 changes: 1 addition & 1 deletion upgrade_system_core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ function us_CheckCorpse(monsterType, corpsePosition, killerId)
local cc,
plat,
gold = 0, 0, 0
for i = 1, corpse:getSize() do
for i = 0, corpse:getSize() do
local item = corpse:getItem(i)
if item then
if item.itemid == 2160 then
Expand Down

0 comments on commit 04d880b

Please sign in to comment.