Fixed areaPortals being broken after reading from archive

This commit is contained in:
smallmodel 2023-11-26 20:44:21 +01:00
parent 433305617c
commit 969255c48e
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -494,7 +494,7 @@ void CM_ReadPortalState( fileHandle_t f )
if (numareaportals != cm.numAreas) {
Com_Error(ERR_DROP, "numareaportals differs from save game");
}
FS_Read(&cm.areaPortals, cm.numAreas * cm.numAreas * sizeof(*cm.areaPortals), f);
FS_Read(cm.areaPortals, cm.numAreas * cm.numAreas * sizeof(*cm.areaPortals), f);
CM_FloodAreaConnections();
}