浏览代码

孵化字段初始话bug修复

cyzhao 2 月之前
父节点
当前提交
6d44ea970a
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Gameserver/App/model/User/Info_Store.php

+ 2 - 1
Gameserver/App/model/User/Info_Store.php

@@ -141,8 +141,9 @@ class Info_Store extends Object_ext {
             }
             }
             
             
             $str = GameConfig::glc2()->Pet_BreedLocationUnlockInfo;
             $str = GameConfig::glc2()->Pet_BreedLocationUnlockInfo;
+            $this->breedEggLocation = new \stdClass();
             if($str != null){
             if($str != null){
-                $list[] = explode(';', $str);
+                $list = explode(';', $str);
                 foreach ($list as $value) {
                 foreach ($list as $value) {
                     $s = explode(',', $value);
                     $s = explode(',', $value);
                     $k = $s[0]; 
                     $k = $s[0];