From 2fb0f9761ef9789ce068fbe26d2e4c7af1148ec0 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期二, 19 二月 2019 23:49:06 +0800
Subject: [PATCH] 3335 物品管理相关功能重构。
---
System/Dogz/DogzModel.cs | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/System/Dogz/DogzModel.cs b/System/Dogz/DogzModel.cs
index 692c692..7145c3f 100644
--- a/System/Dogz/DogzModel.cs
+++ b/System/Dogz/DogzModel.cs
@@ -445,7 +445,7 @@
bool isAdd = true;
for (int i = 0; i < modellist.Count; i++)
{
- if (modellist[i].itemInfo.ItemPlace == index)
+ if (modellist[i].itemPlace == index)
{
isAdd = false;
modellist[i] = itemModel;
@@ -461,7 +461,7 @@
{
for (int i = 0; i < modellist.Count; i++)
{
- if (modellist[i].itemInfo.ItemPlace == index)
+ if (modellist[i].itemPlace == index)
{
modellist.RemoveAt(i);
break;
@@ -585,7 +585,7 @@
for(int i = 0; i < _list.Count; i++)
{
- int equipPlace = GetDogzEquipPlaceByIndex(_list[i].itemInfo.ItemPlace);
+ int equipPlace = GetDogzEquipPlaceByIndex(_list[i].itemPlace);
if(equipPlace == _equipPlace)
{
_equipData = _list[i];
--
Gitblit v1.8.0