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 committed 2017-02-04 11:05:25 +00:00
1 parent afc8943e34
commit 601a8e633c
1 file changed
+1 -1
+1 -1
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.");
}