Skip to content

Commit

Permalink
Fix issue #278 and #282
Browse files Browse the repository at this point in the history
  • Loading branch information
IrcDirk committed Oct 7, 2024
1 parent 22ae815 commit c8fb510
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Carbonite.lua
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ Nx.Whatsnew.WhichCat = 1
Nx.Whatsnew.HasWhatsNew = nil

-- FIX TO PREVENT INTEGER OVERFLOW IN C
bit.rshift = function(n, r)
Nx.rshift = function(n, r)
return math.floor(n / math.pow(2, r)) % math.pow(2, 32)
end;

Expand Down
2 changes: 1 addition & 1 deletion NxMapGuide.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3043,7 +3043,7 @@ function Nx.Map.Guide:ItemsAddItem (folder, id)
end
local flags = strbyte (info, 2) - 35
local unique = bit.band (flags, 4) > 0
local binding = bit.band (bit.rshift (flags, 3), 3) + 1
local binding = bit.band (Nx.rshift (flags, 3), 3) + 1
local iMin = strbyte (info, 3) - 35
local iLvl = (strbyte (info, 4) - 35) * 221 + strbyte (info, 5) - 35
local quality = strbyte (info, 6) - 35
Expand Down

0 comments on commit c8fb510

Please sign in to comment.