LoadRecordGhosts: Use local unlock state, not consoleplayer availabilities (which might not be set yet) to determine whether a ghost should be visible

This commit is contained in:
toaster 2024-03-04 16:56:07 +00:00 committed by James R
parent 2bfcfeb560
commit 24b850a492

View file

@ -7851,7 +7851,7 @@ static void P_LoadRecordGhosts(void)
if (sameGhosts)
{
INT32 skin = R_SkinAvailable(cv_skin[0].string);
if (skin < 0 || !R_SkinUsable(consoleplayer, skin, false))
if (skin < 0 || !R_SkinUsable(-1, skin, false))
skin = 0; // use default skin
add_ghosts(fmt::format("{}-{}{}", gpath, skins[skin].name, modeprefix), sameGhosts);
}