Browse Source

fixed: 言灵召唤时,消耗道具错误.

gwang 4 years ago
parent
commit
95c5d96493
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Gameserver/Amfphp/process/StoreProc.php

+ 1 - 1
Gameserver/Amfphp/process/StoreProc.php

@@ -101,7 +101,7 @@ class StoreProc {
         $costs = explode(';', $bookIdCfg->cost_materials);
         my_Assert(count($costs) > 0, ErrCode::store_book_info);                 # 召唤书数据有误
         foreach ($costs as $c) {
-            list($itemId, $num) = explode(',', $bookIdCfg->cost_materials);     # 消耗材料
+            list($itemId, $num) = explode(',', $c);     # 消耗材料
             $err = self::removeItemFromStore($user->store, $itemId, $num);      # 扣除 材料
             my_Assert(ErrCode::ok == $err, $err);                               # 防御扣除材料失败
         }