mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 04:51:19 +00:00
Implemented fix discussed in http://forum.zdoom.org/viewtopic.php?f=2&t=52428 rearding UserVar corruption in savegames
This commit is contained in:
parent
1f2c8181bb
commit
7d1dc46665
1 changed files with 2 additions and 2 deletions
|
@ -728,13 +728,13 @@ void FArchive::WriteByte(BYTE val)
|
|||
|
||||
void FArchive::WriteInt16(WORD val)
|
||||
{
|
||||
WORD out = LittleShort(val);
|
||||
WORD out = SWAP_WORD(val);
|
||||
m_File->Write(&out, 2);
|
||||
}
|
||||
|
||||
void FArchive::WriteInt32(DWORD val)
|
||||
{
|
||||
int out = LittleLong(val);
|
||||
int out = SWAP_DWORD(val);
|
||||
m_File->Write(&out, 4);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue