ref: 690a87dbfd0478d2d4361ae5fc37d10d165f7a87
parent: 77e00a93291d6f1d7d2011d540471ef64d094831
author: Gabriel Ravier <[email protected]>
date: Sat Apr 11 20:57:06 EDT 2020
Backends/GLFW3/Controller: Wrap both sides of if-else with {} equally. Signed-off-by: Gabriel Ravier <[email protected]>
--- a/src/Backends/GLFW3/Controller.cpp
+++ b/src/Backends/GLFW3/Controller.cpp
@@ -46,10 +46,8 @@
axis_neutrals = (float*)malloc(sizeof(float) * total_axes);
if (axis_neutrals != NULL)
- {
for (int i = 0; i < total_axes; ++i)
axis_neutrals[i] = axes[i];
- }
else
Backend_PrintError("Couldn't allocate memory for axis");
}