Moved the saving of the previous menu to AFTER the test if the parent has changed.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@5748 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 7d8904227a5b5261ebb355e80f999135425b6204 Former-commit-id: 52c34b62813615d43831501e1ca6fb69c1e6a694
This commit is contained in:
parent
8b51369b4f
commit
44b4f820d5
1 changed files with 2 additions and 1 deletions
|
@ -611,7 +611,6 @@ ControlMenuInit(void *prevMenu, void *prefHdle, unsigned index, tGearChangeMode
|
|||
int i;
|
||||
|
||||
ReloadValues = 1;
|
||||
PrevScrHandle = prevMenu;
|
||||
PrefHdle = prefHdle;
|
||||
SaveOnExit = saveOnExit;
|
||||
|
||||
|
@ -630,6 +629,8 @@ ControlMenuInit(void *prevMenu, void *prefHdle, unsigned index, tGearChangeMode
|
|||
return ScrHandle;
|
||||
}
|
||||
|
||||
PrevScrHandle = prevMenu;
|
||||
|
||||
/* Initialize joysticks array */
|
||||
for (int jsInd = 0; jsInd < GFCTRL_JOY_NUMBER; jsInd++)
|
||||
Joystick[jsInd] = 0;
|
||||
|
|
Loading…
Reference in a new issue