fix compiler warnings (GCC + Clang)
This commit is contained in:
@@ -145,7 +145,7 @@ static int get_axis(lua::State* L) {
|
||||
}
|
||||
auto z = lua::tointeger(L, 3);
|
||||
|
||||
glm::ivec3 defAxis;
|
||||
glm::ivec3 defAxis {};
|
||||
defAxis[n] = 1;
|
||||
|
||||
auto vox = blocks_agent::get(*level->chunks, x, y, z);
|
||||
@@ -562,6 +562,7 @@ static int set_field(
|
||||
return lua::pushinteger(L,
|
||||
dataStruct.setUnicode(dst, value.asString(), field));
|
||||
}
|
||||
[[fallthrough]];
|
||||
case data::FieldType::I8:
|
||||
case data::FieldType::I16:
|
||||
case data::FieldType::I32:
|
||||
|
||||
Reference in New Issue
Block a user