Skip to content

Commit

Permalink
Fixed isMelee not checking clones correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
bkacjios committed Dec 3, 2020
1 parent 0cbdc40 commit cf618a6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions source/modules/memory/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,13 @@ function memory.isMelee()
version = 0x02
end

local clone = memory.clones[gid]
if clone then gid = clone.id end
-- See if this GameID is a clone of another
local clone = memory.clones[gid] and memory.clones[gid][version] or nil

if clone then
version = clone.version
gid = clone.id
end

return gid == "GALE01" and version == 0x02
end
Expand Down

0 comments on commit cf618a6

Please sign in to comment.