Fix warning;

This commit is contained in:
bjorn 2019-08-01 13:01:41 -07:00
parent ecac39c08b
commit 38671d4ca9
1 changed files with 2 additions and 2 deletions

View File

@ -424,13 +424,13 @@ int l_lovrHeadsetGetAxis(lua_State* L) {
float value[4];
FOREACH_TRACKING_DRIVER(driver) {
if (driver->getAxis(device, axis, value)) {
for (size_t i = 0; i < count; i++) {
for (int i = 0; i < count; i++) {
lua_pushnumber(L, value[i]);
}
return count;
}
}
for (size_t i = 0; i < count; i++) {
for (int i = 0; i < count; i++) {
lua_pushnumber(L, 0.);
}
return count;