forked from rosebudai/OpenRCT2-Web
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:
1 parent
afc8943e34
commit
601a8e633c
1 file changed
+1
-1
@@ -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.");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user