gitxsm 5 месяцев назад
Родитель
Сommit
0e12354802
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      script/module/serverCommerce/ServerCommerceActBattleGroundNS.lua

+ 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