Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Fix bug in OpenXRUtil::string_from_xruuid

dhoverba4b2c2276257
diff --git a/modules/openxr/openxr_util.cpp b/modules/openxr/openxr_util.cpp
index 0bb95bd7328..2a803d24d89 100644
--- a/modules/openxr/openxr_util.cpp
+++ b/modules/openxr/openxr_util.cpp
@@ -111,7 +111,7 @@ String OpenXRUtil::string_from_xruuid(const XrUuid &xr_uuid) {
for (int i = 0; i < XR_UUID_SIZE; i++) {
non_zero |= xr_uuid.data[i] != 0;
- char a = xr_uuid.data[i] & 0xF0 >> 4;
+ char a = (xr_uuid.data[i] & 0xF0) >> 4;
char b = xr_uuid.data[i] & 0x0F;
if (a < 10) {