Przeglądaj źródła

装备宝石镶嵌bug修复

cyzhao 6 miesięcy temu
rodzic
commit
351d40db5c
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      Gameserver/App/process/StoreProc.php

+ 3 - 0
Gameserver/App/process/StoreProc.php

@@ -866,6 +866,9 @@ class StoreProc {
         $tag_index = 0;
         $tag_gem = null;
         foreach ($gemSetSlotDic as $slotId => $gemUid) {
+            if($gemUid == 0){
+                continue;
+            }
             $gem = new Ins_Gem(ctx()->store->gemStore->$gemUid);
             if ($gem->predicateMo()->uniqueKey == $ins_gem->predicateMo()->uniqueKey) {
                 $tag_index = $slotId;