소스 검색

服装分解补充

huangxiaoyue 1 년 전
부모
커밋
67f3e77aa2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      GameClient/Assets/Game/HotUpdate/Views/ClothingDecompose/ClothingDecomposeView.cs

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/ClothingDecompose/ClothingDecomposeView.cs

@@ -388,7 +388,7 @@ namespace GFGGame
                 return;
             }
             long consumeCount = 0;
-            if (itemCfg.suitId > 0)
+            if (itemCfg != null && itemCfg.suitId > 0)
                 consumeCount = cfg.consumeCount * _decomposeCount;
             else 
                 consumeCount = cfg.consumeCount * _decoNormalCount;