diff --git a/src/client/GameSave.cpp b/src/client/GameSave.cpp index a3187ba48..de923a8bb 100644 --- a/src/client/GameSave.cpp +++ b/src/client/GameSave.cpp @@ -2012,6 +2012,11 @@ void GameSave::readPSv(const std::vector &dataVec) std::pair> GameSave::serialiseOPS() const { + if (blockSize.X > 255 || blockSize.Y > 255) + { + throw BuildException("simulation size not supported by the save format"); + } + // minimum version this save is compatible with // when building, this number may be increased depending on what elements are used // or what properties are detected