gitxsm пре 5 месеци
родитељ
комит
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