mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 04:41:23 +00:00
Merge branch 'archiveworld-sigsegv-fix' into 'master'
Fix SIGSEGV from sending lindefs/sidedefs in savegame See merge request KartKrew/Kart-Public!99
This commit is contained in:
commit
7dc1d163be
1 changed files with 76 additions and 73 deletions
|
@ -677,6 +677,8 @@ static void P_NetArchiveWorld(void)
|
||||||
|
|
||||||
mld = W_CacheLumpNum(lastloadedmaplumpnum+ML_LINEDEFS, PU_CACHE);
|
mld = W_CacheLumpNum(lastloadedmaplumpnum+ML_LINEDEFS, PU_CACHE);
|
||||||
msd = W_CacheLumpNum(lastloadedmaplumpnum+ML_SIDEDEFS, PU_CACHE);
|
msd = W_CacheLumpNum(lastloadedmaplumpnum+ML_SIDEDEFS, PU_CACHE);
|
||||||
|
if (mld && msd)
|
||||||
|
{
|
||||||
// do lines
|
// do lines
|
||||||
for (i = 0; i < numlines; i++, mld++, li++)
|
for (i = 0; i < numlines; i++, mld++, li++)
|
||||||
{
|
{
|
||||||
|
@ -757,6 +759,7 @@ static void P_NetArchiveWorld(void)
|
||||||
WRITEINT32(put, si->midtexture);
|
WRITEINT32(put, si->midtexture);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
WRITEUINT16(put, 0xffff);
|
WRITEUINT16(put, 0xffff);
|
||||||
R_ClearTextureNumCache(false);
|
R_ClearTextureNumCache(false);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue