From e7b15b5606bdafe8bf444086f5d2545cc91a0ec7 Mon Sep 17 00:00:00 2001 From: 8vogt <8vogt@informatik.uni-hamburg.de> Date: Fri, 26 Mar 2021 17:30:53 +0100 Subject: [PATCH] Fixed issue #79 which was caused by a player id not existing in the dynamic gps list --- SEWorldGenPlugin/Session/MyGPSManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SEWorldGenPlugin/Session/MyGPSManager.cs b/SEWorldGenPlugin/Session/MyGPSManager.cs index fc248d3..df99781 100644 --- a/SEWorldGenPlugin/Session/MyGPSManager.cs +++ b/SEWorldGenPlugin/Session/MyGPSManager.cs @@ -231,7 +231,7 @@ public bool DynamicGpsExists(Guid id, long playerId) { Tuple key = new Tuple(id, playerId); - if (m_dynamicGpss.ContainsKey(key)) + if (m_dynamicGpss.ContainsKey(key) && MySession.Static.Gpss.ExistsForPlayer(playerId)) { return MySession.Static.Gpss[playerId].ContainsKey(m_dynamicGpss[key]); }