This repository has been archived by the owner. It is now read-only.
Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merge pull request
#1050 from swills/controller_config_segfault_fix
Fix seg fault when configuring controller
- Loading branch information
Showing
with
4 additions
and
0 deletions.
-
+4
−0
src/core/Frontend.cpp
There are no files selected for viewing
|
|
@@ -2166,7 +2166,11 @@ CMenuManager::DrawControllerBound(int32 yStart, int32 xStart, int32 unused, int8 |
|
|
|
|
|
// Print bindings, including seperator (-) between them
|
|
// Print bindings, including seperator (-) between them
|
|
CFont::SetScale(MENU_X(0.25f), MENU_Y(SMALLESTTEXT_Y_SCALE));
|
|
CFont::SetScale(MENU_X(0.25f), MENU_Y(SMALLESTTEXT_Y_SCALE));
|
|
|
|
#ifdef FIX_BUGS
|
|
|
|
for (; contSetOrder < MAX_SETORDERS && controllerAction >= 0; contSetOrder++) {
|
|
|
|
#else
|
|
for (; contSetOrder < MAX_SETORDERS && controllerAction != -1; contSetOrder++) {
|
|
for (; contSetOrder < MAX_SETORDERS && controllerAction != -1; contSetOrder++) {
|
|
|
|
#endif
|
|
wchar *settingText = ControlsManager.GetControllerSettingTextWithOrderNumber((e_ControllerAction)controllerAction, (eContSetOrder)contSetOrder);
|
|
wchar *settingText = ControlsManager.GetControllerSettingTextWithOrderNumber((e_ControllerAction)controllerAction, (eContSetOrder)contSetOrder);
|
|
if (settingText) {
|
|
if (settingText) {
|
|
++bindingsForThisOpt;
|
|
++bindingsForThisOpt;
|
|
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.