|
|
@@ -396,7 +396,7 @@ function getHeroGridByUuid(human, heroUuid)
|
|
|
end
|
|
|
|
|
|
local battleGroundData = human.db.ServerCommerce.battleGround
|
|
|
- if not battleGroundData.heroBag then
|
|
|
+ if not battleGroundData or not battleGroundData.heroBag then
|
|
|
return
|
|
|
end
|
|
|
|
|
|
@@ -429,7 +429,7 @@ function getHeroGridByheroId(human, heroId)
|
|
|
end
|
|
|
|
|
|
local battleGroundData = human.db.ServerCommerce.battleGround
|
|
|
- if not battleGroundData.heroBag then
|
|
|
+ if not battleGroundData or not battleGroundData.heroBag then
|
|
|
return
|
|
|
end
|
|
|
|