mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-25 05:55:40 +00:00
Fix seg fault when configuring controller
This commit is contained in:
parent
88c11e92d3
commit
2b6628aa65
1 changed files with 5 additions and 0 deletions
|
@ -1864,8 +1864,13 @@ CMenuManager::DrawControllerBound(int32 yStart, int32 xStart, int32 unused, int8
|
|||
}
|
||||
|
||||
// Print bindings, including seperator (-) between them
|
||||
|
||||
CFont::SetScale(MENU_X(0.25f), MENU_Y(LISTITEM_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;
|
||||
|
|
Loading…
Reference in a new issue