Bläddra i källkod

展示灵宠bug修复

cyzhao 2 veckor sedan
förälder
incheckning
b3e6d6a24b
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      Gameserver/App/process/PetProc.php

+ 2 - 2
Gameserver/App/process/PetProc.php

@@ -66,7 +66,7 @@ class PetProc {
                 $ins_pet = new Ins_Pet(ctx()->store->$petUid);
                 $typeId = $ins_pet->mo()->type;
                 $qual = $ins_pet->qual;
-
+                
                 $pet_exploreoutputMo = GameConfig::pet_exploreoutput_getItem($typeId, $qual);
                 if ($pet_exploreoutputMo->exploreOutput != null) {
                     $sList = explode(';', $pet_exploreoutputMo->exploreOutput);
@@ -826,7 +826,7 @@ class PetProc {
         if(count($uids) == 0){
             ctx()->store()->mainShowPetList = $uids;
         } else {
-            my_Assert(count($uids)< GameConfig::glc2()->Pet_MainShowPetList , ErrCode::user_store_ShowPetNumLimit);
+            my_Assert(count($uids)<= GameConfig::glc2()->Pet_MainShowPetList , ErrCode::user_store_ShowPetNumLimit);
             
             foreach ($uids as $uid) {
                 my_Assert(StlUtil::dictHasProperty($petDic, $uid), ErrCode::user_store_NotExistPet);