diff --git a/source/games/sw/src/save.cpp b/source/games/sw/src/save.cpp index 420f5f1c5..e71037235 100644 --- a/source/games/sw/src/save.cpp +++ b/source/games/sw/src/save.cpp @@ -631,7 +631,7 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, SECTOR_OBJECTp& w, { int ndx = w ? int(w - SectorObject) : -1; arc(keyname, ndx); - w = ndx == -1 ? nullptr : SectorObject; + if (arc.isReading() )w = ndx == -1 ? nullptr : SectorObject + ndx; return arc; }