OSDN Git Service

To avoid a fatal "cannot set permissions correctly" error, set player_egid (and to...
authorEric Branlund <ebranlund@fastmail.com>
Sun, 5 Apr 2020 16:26:38 +0000 (09:26 -0700)
committerEric Branlund <ebranlund@fastmail.com>
Sun, 5 Apr 2020 16:26:38 +0000 (09:26 -0700)
src/main-cocoa.m

index c8dd93d..310e9b1 100644 (file)
@@ -5693,12 +5693,13 @@ static void play_sound(int event)
        /* Register the sound hook */
        /* sound_hook = play_sound; */
 
-       /* Initialise game */
-       init_angband();
-
        /* Initialize some save file stuff */
+       player_euid = geteuid();
        player_egid = getegid();
 
+       /* Initialise game */
+       init_angband();
+
        /* We are now initialized */
        initialized = TRUE;