From 9d8ac65aaf233db62afc2c8ca3ae6d53adc40d7a Mon Sep 17 00:00:00 2001 From: catloversg <152669316+catloversg@users.noreply.github.com> Date: Mon, 25 Nov 2024 04:46:18 +0700 Subject: [PATCH] BUGFIX: Generic Reviver does not handle Message class (#1796) --- src/utils/GenericReviver.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/GenericReviver.ts b/src/utils/GenericReviver.ts index f2605d85d0..5f4cbd6aa1 100644 --- a/src/utils/GenericReviver.ts +++ b/src/utils/GenericReviver.ts @@ -16,6 +16,7 @@ export function Reviver(_key: string, value: unknown): any { // Known missing constructors with special handling. switch (value.ctor) { case "AllServersMap": // Reviver removed in v0.43.1 + case "Message": // Reviver removed in v1.6.4 case "Industry": // No longer part of save data since v2.3.0 case "Employee": // Entire object removed from game in v2.2.0 (employees abstracted) case "Company": // Reviver removed in v2.6.1