line 448: fix skybox mobj reference leak

Calling P_SetTarget on the temporary skybox_t is
pointless. P_SwitchSkybox calls P_SetTarget when copying
to the player struct.
This commit is contained in:
James R 2023-03-29 03:18:40 -07:00
parent 4588a20a95
commit 77e5bb4d19

View file

@ -3707,7 +3707,7 @@ boolean P_ProcessSpecial(activator_t *activator, INT16 special, INT32 *args, cha
else
set = NULL;
P_SetTarget(&skybox.viewpoint, set);
skybox.viewpoint = set;
}
// set centerpoint mobj
@ -3718,7 +3718,7 @@ boolean P_ProcessSpecial(activator_t *activator, INT16 special, INT32 *args, cha
else
set = NULL;
P_SetTarget(&skybox.centerpoint, set);
skybox.centerpoint = set;
}
if (args[3]) // Applies to all players