Backends/GLFW3/Controller: Wrap both sides of if-else with {} equally.
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
This commit is contained in:
parent
77e00a9329
commit
690a87dbfd
1 changed files with 0 additions and 2 deletions
|
@ -46,10 +46,8 @@ static void JoystickCallback(int joystick_id, int event)
|
||||||
axis_neutrals = (float*)malloc(sizeof(float) * total_axes);
|
axis_neutrals = (float*)malloc(sizeof(float) * total_axes);
|
||||||
|
|
||||||
if (axis_neutrals != NULL)
|
if (axis_neutrals != NULL)
|
||||||
{
|
|
||||||
for (int i = 0; i < total_axes; ++i)
|
for (int i = 0; i < total_axes; ++i)
|
||||||
axis_neutrals[i] = axes[i];
|
axis_neutrals[i] = axes[i];
|
||||||
}
|
|
||||||
else
|
else
|
||||||
Backend_PrintError("Couldn't allocate memory for axis");
|
Backend_PrintError("Couldn't allocate memory for axis");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue