From e8a2df75fde2b9cc4fe386afbce14d4cccb96bbc Mon Sep 17 00:00:00 2001 From: derrod Date: Fri, 29 May 2020 23:06:15 +0200 Subject: [PATCH] [models] deepcopy EGLManifest input data --- legendary/models/egl.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/legendary/models/egl.py b/legendary/models/egl.py index 6942eda..df60e0e 100644 --- a/legendary/models/egl.py +++ b/legendary/models/egl.py @@ -1,3 +1,4 @@ +from copy import deepcopy from distutils.util import strtobool from legendary.models.game import InstalledGame, Game @@ -73,6 +74,7 @@ class EGLManifest: @classmethod def from_json(cls, json: dict): + json = deepcopy(json) tmp = cls() tmp.app_name = json.pop('AppName') tmp.app_version_string = json.pop('AppVersionString', None)