change one more place with potential aliasing issue

This commit is contained in:
toxieainc 2022-10-03 04:47:39 +02:00 committed by trzy
parent 5f97e5af6c
commit aae58edd62

View file

@ -688,9 +688,9 @@ void CLegacy3D::DescendCullingNode(UINT32 addr)
const UINT32 node1Ptr = node[0x07-offset];
const UINT32 node2Ptr = node[0x08-offset];
const UINT32 matrixOffset = node[0x03-offset]&0xFFF;
const float x = *(float *) &node[0x04-offset];
const float y = *(float *) &node[0x05-offset];
const float z = *(float *) &node[0x06-offset];
const float x = Util::Uint32AsFloat(node[0x04-offset]);
const float y = Util::Uint32AsFloat(node[0x05-offset]);
const float z = Util::Uint32AsFloat(node[0x06-offset]);
// Texture offset?
TextureOffset oldTextureOffset = m_textureOffset; // save old offsets