Bläddra i källkod

装备宝石镶嵌bug修复

cyzhao 6 månader sedan
förälder
incheckning
f34c3c96e7
1 ändrade filer med 6 tillägg och 2 borttagningar
  1. 6 2
      Gameserver/App/process/StoreProc.php

+ 6 - 2
Gameserver/App/process/StoreProc.php

@@ -883,11 +883,15 @@ class StoreProc {
                 my_Assert($tag_gem == null, ErrCode::user_store_GemCanotSet);
                 $go_index = 1;
                 for ($i = 1; $i <= $mo->initNum_slot + $mo->buyNum_slot; $i++) {
-                    if (!StlUtil::dictHasProperty($gemSetSlotDic, $i) || $gemSetSlotDic->$i == 0) {
+                    if (!StlUtil::dictHasProperty($gemSetSlotDic, $i)) {
                         //$gemSetSlotDic->$i = $ins_gem;
                         $go_index = $i;
                         break;
-                    }                                      
+                    }                        
+                    if($gemSetSlotDic->$i == 0){
+                        $go_index = $i;
+                        break;
+                    }
                 }
                 $gemSetSlotDic->$go_index = $uid;
                 break;