报错fix

This commit is contained in:
Fang 2023-08-14 18:40:22 +08:00
parent b06ed8a9eb
commit 4845fd5480

View File

@ -291,7 +291,7 @@ function CollectionData:onGetedPointSuccess(type, id, point)
if not self.collectHero[id] then
self.collectHero[id] = 0
end
self.collectHero[id] = DataManager.heroData:getHeroById(id):getLv()
self.collectHero[id] = DataManager.HeroData:getHeroById(id):getLv()
elseif type == GConst.CollectionConst.TYPE.SKIN then
self.collectSkin[id] = 1
end