refactor: PVS-Studio warnings fixes
This commit is contained in:
@@ -214,8 +214,8 @@ public:
|
||||
Block(const Block&) = delete;
|
||||
};
|
||||
|
||||
inline glm::ivec3 get_ground_direction(const Block* def, int rotation) {
|
||||
return -def->rotations.variants[rotation].axisY;
|
||||
inline glm::ivec3 get_ground_direction(const Block& def, int rotation) {
|
||||
return -def.rotations.variants[rotation].axisY;
|
||||
}
|
||||
|
||||
#endif // VOXELS_BLOCK_HPP_
|
||||
|
||||
Reference in New Issue
Block a user