mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 16:34:06 +00:00
Use reference on MxDSObject Deserialize calls (#767)
This commit is contained in:
@@ -185,7 +185,7 @@ MxDSObject* CreateStreamObject(MxDSFile* p_file, MxS16 p_ofs)
|
||||
// Save a copy so we can clean up properly, because
|
||||
// this function will alter the pointer value.
|
||||
MxU8* copy = buf;
|
||||
MxDSObject* obj = DeserializeDSObjectDispatch(&buf, -1);
|
||||
MxDSObject* obj = DeserializeDSObjectDispatch(buf, -1);
|
||||
delete[] copy;
|
||||
return obj;
|
||||
}
|
||||
|
Reference in New Issue
Block a user