diff options
author | Steve Wills <steve@mouf.net> | 2021-02-16 16:55:11 +0100 |
---|---|---|
committer | Steve Wills <steve@mouf.net> | 2021-02-16 16:55:11 +0100 |
commit | 20d9498fdba8a2a574f0e819d8fab4db4b467bcb (patch) | |
tree | 982e1ac159bb20d1fca08dfcd94b2c045c9735a6 /src/core/Frontend.cpp | |
parent | Fix seg fault when configuring controller (diff) | |
download | re3-20d9498fdba8a2a574f0e819d8fab4db4b467bcb.tar re3-20d9498fdba8a2a574f0e819d8fab4db4b467bcb.tar.gz re3-20d9498fdba8a2a574f0e819d8fab4db4b467bcb.tar.bz2 re3-20d9498fdba8a2a574f0e819d8fab4db4b467bcb.tar.lz re3-20d9498fdba8a2a574f0e819d8fab4db4b467bcb.tar.xz re3-20d9498fdba8a2a574f0e819d8fab4db4b467bcb.tar.zst re3-20d9498fdba8a2a574f0e819d8fab4db4b467bcb.zip |
Diffstat (limited to 'src/core/Frontend.cpp')
-rw-r--r-- | src/core/Frontend.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/Frontend.cpp b/src/core/Frontend.cpp index ae2dd12f..39d7430e 100644 --- a/src/core/Frontend.cpp +++ b/src/core/Frontend.cpp @@ -2166,7 +2166,11 @@ CMenuManager::DrawControllerBound(int32 yStart, int32 xStart, int32 unused, int8 // Print bindings, including seperator (-) between them 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++) { +#endif wchar *settingText = ControlsManager.GetControllerSettingTextWithOrderNumber((e_ControllerAction)controllerAction, (eContSetOrder)contSetOrder); if (settingText) { ++bindingsForThisOpt; |