mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix backing out of the input tester for a new profile causing a crash.
This commit is contained in:
parent
48d451cfef
commit
aa0c6d12eb
1 changed files with 2 additions and 0 deletions
|
|
@ -4538,6 +4538,8 @@ boolean M_ProfileControlsInputs(INT32 ch)
|
|||
{
|
||||
// Reset controls to that of the current profile.
|
||||
profile_t *cpr = PR_GetProfile(cv_currprofile.value);
|
||||
if (cpr == NULL)
|
||||
cpr = PR_GetProfile(0); // Creating a profile at boot, revert to guest profile
|
||||
memcpy(&gamecontrol[0], cpr->controls, sizeof(gamecontroldefault));
|
||||
|
||||
M_StartMessage(M_GetText("Your controls have been\nreverted to their previous state.\n\n(Press any key)"), NULL, MM_NOTHING);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue