Skip to content

Commit

Permalink
Fixed CP2077 crash issue
Browse files Browse the repository at this point in the history
Fixed crash issue when the game is no longer installed.
  • Loading branch information
DuskDweller committed Sep 28, 2024
1 parent c69cb9b commit b44f9b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Game Modes/Cyberpunk2077/Cyberpunk2077GameMode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ private bool IsOldGameVersion
{
if (!_isOldGameVersion.HasValue)
{
_isOldGameVersion = GameVersion < new Version(1, 2);
Version gameVersion = GameVersion;
if (gameVersion != null)
_isOldGameVersion = gameVersion < new Version(1, 2);
}

return (_isOldGameVersion.HasValue ? _isOldGameVersion.Value : false);
Expand Down

0 comments on commit b44f9b2

Please sign in to comment.