Skip to content

Commit

Permalink
Fixed issue #79 which was caused by a player id not existing in the d…
Browse files Browse the repository at this point in the history
…ynamic gps list
  • Loading branch information
8vogt committed Mar 26, 2021
1 parent cd659dc commit e7b15b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SEWorldGenPlugin/Session/MyGPSManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public bool DynamicGpsExists(Guid id, long playerId)
{
Tuple<Guid, long> key = new Tuple<Guid, long>(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]);
}
Expand Down

0 comments on commit e7b15b5

Please sign in to comment.