gitxsm hai 5 meses
pai
achega
0e12354802

+ 2 - 2
script/module/serverCommerce/ServerCommerceActBattleGroundNS.lua

@@ -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