Skip to content

Commit 0e7fda4

Browse files
authored
Merge pull request #586 from TomGrobbe/hotfix/OneSyncDynamicCast
Fixes runtime dynamic cast error
2 parents 0b44163 + 4da030f commit 0e7fda4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vMenu/MainMenu.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ public MainMenu()
326326
// Clear all previous pause menu info/brief messages on resource start.
327327
ClearBrief();
328328

329-
if (GlobalState.Get("vmenu_onesync") ?? false)
329+
if (GlobalState.Get("vmenu_onesync") is bool value && value)
330330
{
331331
PlayersList = new InfinityPlayerList(Players);
332332
}

0 commit comments

Comments
 (0)