From 1f20c2ddb9c53dd3e76ea50e2c2786b81012fda0 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期五, 01 二月 2019 19:21:31 +0800
Subject: [PATCH] 3335 代码保护

---
 Core/GameEngine/Model/TelPartialConfig/PartialMapResourcesConfig.cs |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/Core/GameEngine/Model/TelPartialConfig/PartialMapResourcesConfig.cs b/Core/GameEngine/Model/TelPartialConfig/PartialMapResourcesConfig.cs
index 676de89..7b5836d 100644
--- a/Core/GameEngine/Model/TelPartialConfig/PartialMapResourcesConfig.cs
+++ b/Core/GameEngine/Model/TelPartialConfig/PartialMapResourcesConfig.cs
@@ -17,6 +17,11 @@
                 key = dataMapId * 1000 + 0;
             }
 
+            if (!mapResourcesIdDictionary.ContainsKey(key))
+            {
+                return null;
+            }
+
             var id = mapResourcesIdDictionary[key];
             var config = Config.Instance.Get<MapResourcesConfig>(id);
             return config;

--
Gitblit v1.8.0