Fixed Debug Locals using improper casting for the float scenario. (#1823)

This commit is contained in:
gir489 2023-07-23 13:54:01 -04:00 committed by GitHub
parent 84e3262694
commit 42d7714d48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -165,7 +165,7 @@ namespace big
if (local_.m_freeze)
{
*local_.m_internal_address = local_.m_freeze_value_float;
*(float*)local_.m_internal_address = local_.m_freeze_value_float;
}
break;
case 2:
@ -201,7 +201,7 @@ namespace big
if (ImGui::Checkbox("Freeze", &local_.m_freeze))
{
local_.m_freeze_value_int = *local_.m_internal_address;
local_.m_freeze_value_float = (float)*local_.m_internal_address;
local_.m_freeze_value_float = *reinterpret_cast<float*>(local_.m_internal_address);
local_.m_freeze_value_vector3 = *local_.m_internal_address_vector3;
}
}