mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-24 00:31:16 +00:00
Workaround for 100% match
This commit is contained in:
parent
b0c202546c
commit
e9c9f1b562
@ -162,9 +162,13 @@ void MxDSAction::MergeFrom(MxDSAction &p_dsAction)
|
|||||||
if (p_dsAction.m_up[2] != FLT_MAX)
|
if (p_dsAction.m_up[2] != FLT_MAX)
|
||||||
this->m_up[2] = p_dsAction.m_up[2];
|
this->m_up[2] = p_dsAction.m_up[2];
|
||||||
|
|
||||||
// TODO
|
|
||||||
MxU16 extraLength = p_dsAction.m_extraLength;
|
MxU16 extraLength = p_dsAction.m_extraLength;
|
||||||
char *extraData = p_dsAction.m_extraData;
|
char *extraData = p_dsAction.m_extraData;
|
||||||
|
|
||||||
|
// Taking those references forces the compiler to move the values onto the stack.
|
||||||
|
// The original code most likely looked differently, but this yields a 100% match.
|
||||||
|
MxU16 &_extraLength = extraLength;
|
||||||
|
char *&_extraData = extraData;
|
||||||
if (extraLength && extraData) {
|
if (extraLength && extraData) {
|
||||||
if (!this->m_extraData || !strncmp("XXX", this->m_extraData, 3)) {
|
if (!this->m_extraData || !strncmp("XXX", this->m_extraData, 3)) {
|
||||||
delete[] this->m_extraData;
|
delete[] this->m_extraData;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user