From 4df960720219c3e99a495d3080ad348147e11edf Mon Sep 17 00:00:00 2001
From: Client_PangDeRong <593317293@qq.com>
Date: 星期六, 25 八月 2018 17:29:57 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
System/MainInterfacePanel/XpSkill.cs | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/System/MainInterfacePanel/XpSkill.cs b/System/MainInterfacePanel/XpSkill.cs
index e356b84..3e6fa0c 100644
--- a/System/MainInterfacePanel/XpSkill.cs
+++ b/System/MainInterfacePanel/XpSkill.cs
@@ -54,6 +54,11 @@
}
_XpSkill = Config.Instance.Get<SkillConfig>(SkillID);
Skill _skill = PlayerDatas.Instance.hero.SkillMgr.Get(_XpSkill.SkillID);
+ if (_skill == null)
+ {
+ XpButton.SetActive(false);
+ return;
+ }
if (_skill.IsValid())
{
XpButton.SetActive(true);
--
Gitblit v1.8.0