1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 19:43:06 +01:00

Fix #5171: Latest build doesn't allow server connection

Network park streams do not have checksums so do not try to validate.
This commit is contained in:
Ted John
2017-02-04 11:05:25 +00:00
parent afc8943e34
commit 601a8e633c

View File

@@ -105,7 +105,7 @@ public:
void LoadFromStream(IStream * stream, bool isScenario) override
{
if (!gConfigGeneral.allow_loading_with_incorrect_checksum && !SawyerEncoding::ValidateChecksum(stream))
if (isScenario && !gConfigGeneral.allow_loading_with_incorrect_checksum && !SawyerEncoding::ValidateChecksum(stream))
{
throw IOException("Invalid checksum.");
}