mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-21 20:11:12 +00:00
Fix potential segfault when flat images has changed on netcode
This commit is contained in:
parent
085e2d66fd
commit
c833d73e32
1 changed files with 4 additions and 4 deletions
|
@ -1501,13 +1501,13 @@ static void UnArchiveSectors(save_t *save_p)
|
||||||
sectors[i].ceilingheight = P_ReadFixed(save_p);
|
sectors[i].ceilingheight = P_ReadFixed(save_p);
|
||||||
if (diff & SD_FLOORPIC)
|
if (diff & SD_FLOORPIC)
|
||||||
{
|
{
|
||||||
sectors[i].floorpic = P_AddLevelFlatRuntime((char *)save_p);
|
sectors[i].floorpic = P_AddLevelFlatRuntime((char *)&save_p->buf[save_p->pos]);
|
||||||
save_p += 8;
|
save_p->pos += 8;
|
||||||
}
|
}
|
||||||
if (diff & SD_CEILPIC)
|
if (diff & SD_CEILPIC)
|
||||||
{
|
{
|
||||||
sectors[i].ceilingpic = P_AddLevelFlatRuntime((char *)save_p);
|
sectors[i].ceilingpic = P_AddLevelFlatRuntime((char *)&save_p->buf[save_p->pos]);
|
||||||
save_p += 8;
|
save_p->pos += 8;
|
||||||
}
|
}
|
||||||
if (diff & SD_LIGHT)
|
if (diff & SD_LIGHT)
|
||||||
sectors[i].lightlevel = P_ReadINT16(save_p);
|
sectors[i].lightlevel = P_ReadINT16(save_p);
|
||||||
|
|
Loading…
Reference in a new issue