Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Richard Gobeille
EDuke32
Commits
4a517bf9
Commit
4a517bf9
authored
Apr 12, 2022
by
Dino Bollinger
Browse files
Duke3D: Fix an oversight in the keybind menu that could cause a crash
Only occurred if some of the gamefuncs were disabled.
parent
e43d59d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/duke3d/src/menus.cpp
View file @
4a517bf9
...
...
@@ -3640,7 +3640,11 @@ static int32_t Menu_PreCustom2ColScreen(MenuEntry_t *entry)
if
(
i
==
M_KEYBOARDKEYS
.
currentEntry
)
continue
;
auto
iterCol
=
(
MenuCustom2Col_t
*
)
M_KEYBOARDKEYS
.
entrylist
[
i
]
->
entry
;
MenuEntry_t
*
entryPtr
=
M_KEYBOARDKEYS
.
entrylist
[
i
];
if
(
entryPtr
==
nullptr
)
continue
;
auto
iterCol
=
(
MenuCustom2Col_t
*
)
entryPtr
->
entry
;
if
((
*
iterCol
->
column
[
0
]
==
sc
)
||
(
*
iterCol
->
column
[
1
]
==
sc
))
{
alreadyAssigned
=
true
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment