mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-21 09:39:56 +00:00
Merge branch 'fix_save_corruption' into 'master'
Fix save corruption introduced by https://gitlab.com/OpenMW/openmw/-/merge_requests/1600 See merge request OpenMW/openmw!1607
This commit is contained in:
commit
4554a075e7
@ -79,7 +79,7 @@ void ESM::ObjectState::save (ESMWriter &esm, bool inInventory) const
|
||||
std::array<float, 6> pos;
|
||||
memcpy(pos.data(), mPosition.pos, sizeof(float) * 3);
|
||||
memcpy(pos.data() + 3, mPosition.rot, sizeof(float) * 3);
|
||||
esm.writeHNT ("POS_", pos.data(), 24);
|
||||
esm.writeHNT ("POS_", pos, 24);
|
||||
}
|
||||
|
||||
if (mFlags != 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user