From de09231b7f5ee64baa0fe61611f0468a40d47a0b Mon Sep 17 00:00:00 2001
From: client_Zxw <826696702@qq.com>
Date: 星期三, 26 九月 2018 15:07:29 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts

---
 System/WorldMap/LocalMapFindPath.cs |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/System/WorldMap/LocalMapFindPath.cs b/System/WorldMap/LocalMapFindPath.cs
index fc21a24..8cb3c67 100644
--- a/System/WorldMap/LocalMapFindPath.cs
+++ b/System/WorldMap/LocalMapFindPath.cs
@@ -292,9 +292,11 @@
             var npcRefreshIds = model.GetMapNPCRefreshIds(mapId);
             if (npcRefreshIds != null)
             {
-                for (int i = 0; i < npcRefreshIds.Count; i++)
+                foreach ( var item in   npcRefreshIds)
                 {
-                    DrawFunctionNPC(npcRefreshIds[i]);
+                    var config = Config.Instance.Get<mapnpcConfig>(item);
+                    var npcConfig = Config.Instance.Get<NPCConfig>(config.NPCID);
+                    DrawFunctionNPC(item);
                 }
             }
         }

--
Gitblit v1.8.0